[Scummvm-cvs-logs] scummvm master -> 8fa543f58f251ef5c695f6c288ecd0303ec14144

criezy criezy at scummvm.org
Tue Apr 5 21:32:43 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:
841f87bf47 GUI: Update _lastRedraw before calling updateScreen
8fa543f58f GUI: Increase update screen rate to 60Hz


Commit: 841f87bf47821aa1e50969772376180aa287808d
    https://github.com/scummvm/scummvm/commit/841f87bf47821aa1e50969772376180aa287808d
Author: Lothar Serra Mari (scummvm at rootfather.de)
Date: 2016-04-05T20:31:15+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: 8fa543f58f251ef5c695f6c288ecd0303ec14144
    https://github.com/scummvm/scummvm/commit/8fa543f58f251ef5c695f6c288ecd0303ec14144
Author: Lothar Serra Mari (scummvm at rootfather.de)
Date: 2016-04-05T20:31:24+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