projects
/
matthijs
/
ABM2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Increase the maximum FPS again to 20 FPS.
[matthijs/ABM2.git]
/
ABM2
/
Engine
/
Kernel.cpp
diff --git
a/ABM2/Engine/Kernel.cpp
b/ABM2/Engine/Kernel.cpp
index 581b96370d7575914071f944d35376e0ae2f34ec..2a2f1a2507934b96104e64e6eade3a9377b8a463 100755
(executable)
--- a/
ABM2/Engine/Kernel.cpp
+++ b/
ABM2/Engine/Kernel.cpp
@@
-56,8
+56,8
@@
int CKernel::Execute()
IMMObject::CollectGarbage();
\r
DWORD end_point = GetTickCount();
\r
/* Sleep if we didn't use up too much time already */
\r
IMMObject::CollectGarbage();
\r
DWORD end_point = GetTickCount();
\r
/* Sleep if we didn't use up too much time already */
\r
- if (starting_point +
2
50 > end_point)
\r
- Sleep(
2
50 - (end_point-starting_point));
\r
+ if (starting_point + 50 > end_point)
\r
+ Sleep(50 - (end_point-starting_point));
\r
}
\r
#ifdef _DEBUG
\r
CProfileSample::Output();
\r
}
\r
#ifdef _DEBUG
\r
CProfileSample::Output();
\r