diff engine/core/controller/engine.cpp @ 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 18c2a21ac0ad
children d2f1e81fbe2c
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() {