[Scummvm-cvs-logs] scummvm branch-1-8 -> d6772d507805d7d54779a9ec6e7f315338868884

criezy criezy at scummvm.org
Wed Apr 20 23:48:56 CEST 2016


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
de073e5c30 GUI: Update _lastRedraw before calling updateScreen
d6772d5078 GUI: Increase update screen rate to 60Hz


Commit: de073e5c300c3e09a0d01c5d461d389e93a16e6b
    https://github.com/scummvm/scummvm/commit/de073e5c300c3e09a0d01c5d461d389e93a16e6b
Author: Lothar Serra Mari (scummvm at rootfather.de)
Date: 2016-04-20T22:44:48+01:00

Commit Message:
GUI: Update _lastRedraw before calling updateScreen

This reduces the cursor lags on some systems.

Changed paths:
    gui/gui-manager.cpp



diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp
index 20c6d3f..6ac5248 100644
--- a/gui/gui-manager.cpp
+++ b/gui/gui-manager.cpp
@@ -304,9 +304,9 @@ void GuiManager::runLoop() {
 //		_system->updateScreen();
 
 		if (lastRedraw + waitTime < _system->getMillis(true)) {
+			lastRedraw = _system->getMillis(true);
 			_theme->updateScreen();
 			_system->updateScreen();
-			lastRedraw = _system->getMillis(true);
 		}
 
 		Common::Event event;
@@ -342,9 +342,9 @@ void GuiManager::runLoop() {
 
 
 			if (lastRedraw + waitTime < _system->getMillis(true)) {
+				lastRedraw = _system->getMillis(true);
 				_theme->updateScreen();
 				_system->updateScreen();
-				lastRedraw = _system->getMillis(true);
 			}
 		}
 


Commit: d6772d507805d7d54779a9ec6e7f315338868884
    https://github.com/scummvm/scummvm/commit/d6772d507805d7d54779a9ec6e7f315338868884
Author: Lothar Serra Mari (scummvm at rootfather.de)
Date: 2016-04-20T22:44:59+01:00

Commit Message:
GUI: Increase update screen rate to 60Hz

Changed paths:
    gui/gui-manager.cpp



diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp
index 6ac5248..4ddf62b 100644
--- a/gui/gui-manager.cpp
+++ b/gui/gui-manager.cpp
@@ -286,7 +286,7 @@ void GuiManager::runLoop() {
 
 	Common::EventManager *eventMan = _system->getEventManager();
 	uint32 lastRedraw = 0;
-	const uint32 waitTime = 1000 / 45;
+	const uint32 waitTime = 1000 / 60;
 
 	bool tooltipCheck = false;
 






More information about the Scummvm-git-logs mailing list