[Scummvm-cvs-logs] CVS: residual engine.cpp,1.18,1.19
Pawel Kolodziejski
aquadran at users.sourceforge.net
Wed Mar 3 13:14:06 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/base main.cpp,1.38,1.39
- Next message: [Scummvm-cvs-logs] CVS: residual engine.cpp,1.19,1.20 engine.h,1.6,1.7 lua.cpp,1.41,1.42 lua.h,1.2,1.3 smush.cpp,1.27,1.28 smush.h,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17393
Modified Files:
engine.cpp
Log Message:
added delay to main loop to prevent take all CPU resources
Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/engine.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- engine.cpp 29 Feb 2004 18:38:26 -0000 1.18
+++ engine.cpp 3 Mar 2004 20:52:58 -0000 1.19
@@ -138,6 +138,9 @@
g_driver->flipBuffer();
+ // don't kill CPU
+ SDL_Delay(1);
+
// Update timing information
unsigned newStart = SDL_GetTicks();
frameTime_ = newStart - frameStart_;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/base main.cpp,1.38,1.39
- Next message: [Scummvm-cvs-logs] CVS: residual engine.cpp,1.19,1.20 engine.h,1.6,1.7 lua.cpp,1.41,1.42 lua.h,1.2,1.3 smush.cpp,1.27,1.28 smush.h,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list