Mercurial > fife-parpg
changeset 83:46de6c7e22e5
increased felt responsiveness by first processing events and then drawing the screen
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 18 Jul 2008 14:44:56 +0000 |
parents | b5bb869665fd |
children | a19c4ca20d97 |
files | engine/core/controller/engine.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/controller/engine.cpp Fri Jul 18 13:10:33 2008 +0000 +++ b/engine/core/controller/engine.cpp Fri Jul 18 14:44:56 2008 +0000 @@ -286,6 +286,7 @@ } void Engine::pump() { + m_eventmanager->processEvents(); m_renderbackend->startFrame(); m_timemanager->update(); m_model->update(); @@ -293,8 +294,6 @@ m_guimanager->turn(); m_cursor->draw(); m_renderbackend->endFrame(); - SDL_Delay(1); - m_eventmanager->processEvents(); } void Engine::finalizePumping() {