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=refs%2Fheads%2Flinux;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();