From: Matthijs Kooijman Date: Tue, 12 Jun 2007 10:32:01 +0000 (+0200) Subject: * Increase the maximum FPS again to 20 FPS. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=99696df8d39203e11a458cf820b498820107dd76;p=matthijs%2FABM2.git * Increase the maximum FPS again to 20 FPS. --- diff --git a/ABM2/Engine/Kernel.cpp b/ABM2/Engine/Kernel.cpp index 581b963..2a2f1a2 100755 --- a/ABM2/Engine/Kernel.cpp +++ b/ABM2/Engine/Kernel.cpp @@ -56,8 +56,8 @@ int CKernel::Execute() IMMObject::CollectGarbage(); DWORD end_point = GetTickCount(); /* Sleep if we didn't use up too much time already */ - if (starting_point + 250 > end_point) - Sleep(250 - (end_point-starting_point)); + if (starting_point + 50 > end_point) + Sleep(50 - (end_point-starting_point)); } #ifdef _DEBUG CProfileSample::Output();