[Scummvm-cvs-logs] SF.net SVN: scummvm:[49153] scummvm/trunk/engines

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun May 23 12:50:14 CEST 2010


Revision: 49153
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49153&view=rev
Author:   eriktorbjorn
Date:     2010-05-23 10:50:14 +0000 (Sun, 23 May 2010)

Log Message:
-----------
Keep the Broken Sword cutscene players from using up all available CPU.
Probably a regression from the recent video decoder rewrite, but I haven't
checked if it also present in other engines.

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/animation.cpp
    scummvm/trunk/engines/sword2/animation.cpp

Modified: scummvm/trunk/engines/sword1/animation.cpp
===================================================================
--- scummvm/trunk/engines/sword1/animation.cpp	2010-05-23 10:28:03 UTC (rev 49152)
+++ scummvm/trunk/engines/sword1/animation.cpp	2010-05-23 10:50:14 UTC (rev 49153)
@@ -267,6 +267,8 @@
 		while (_vm->_system->getEventManager()->pollEvent(event))
 			if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE) || event.type == Common::EVENT_LBUTTONUP)
 				return false;
+
+		_vm->_system->delayMillis(10);
 	}
 
 	return !_vm->shouldQuit();

Modified: scummvm/trunk/engines/sword2/animation.cpp
===================================================================
--- scummvm/trunk/engines/sword2/animation.cpp	2010-05-23 10:28:03 UTC (rev 49152)
+++ scummvm/trunk/engines/sword2/animation.cpp	2010-05-23 10:50:14 UTC (rev 49153)
@@ -293,6 +293,8 @@
 		while (_vm->_system->getEventManager()->pollEvent(event))
 			if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE) || event.type == Common::EVENT_LBUTTONUP)
 				return false;
+
+		_vm->_system->delayMillis(10);
 	}
 
 	return !_vm->shouldQuit();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list