X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FEngine%2FKernel.cpp;fp=ABM2%2FEngine%2FKernel.cpp;h=06269d33183bbd209f78b2b1967a317ab654f98b;hp=7638ab10c0c725094ccf9c7638b182f0f53904c1;hb=74b9a225eda4a9c8d97da9f374fd444b3823e5c1;hpb=a905c9a782ae0b618e787461e98dafae87185b80 diff --git a/ABM2/Engine/Kernel.cpp b/ABM2/Engine/Kernel.cpp index 7638ab1..06269d3 100755 --- a/ABM2/Engine/Kernel.cpp +++ b/ABM2/Engine/Kernel.cpp @@ -34,7 +34,7 @@ int CKernel::Execute() { PROFILE("Kernel task loop"); - //DWORD starting_point = GetTickCount(); + DWORD starting_point = GetTickCount(); #ifdef WIN32 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) @@ -66,8 +66,8 @@ int CKernel::Execute() } } IMMObject::CollectGarbage(); - //DWORD end_point = GetTickCount(); -// Sleep(50 - (end_point-starting_point)); + DWORD end_point = GetTickCount(); + Sleep(50 - (end_point-starting_point)); } #ifdef _DEBUG CProfileSample::Output();