* Limit the Kernel to 20fps.
[matthijs/ABM2.git] / ABM2 / Engine / Kernel.cpp
index 7638ab10c0c725094ccf9c7638b182f0f53904c1..06269d33183bbd209f78b2b1967a317ab654f98b 100755 (executable)
@@ -34,7 +34,7 @@ int CKernel::Execute()
                {\r
                        PROFILE("Kernel task loop");\r
 \r
-                       //DWORD starting_point = GetTickCount();\r
+                       DWORD starting_point = GetTickCount();\r
 \r
 #ifdef WIN32\r
         if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))\r
@@ -66,8 +66,8 @@ int CKernel::Execute()
                                }\r
                        }\r
                        IMMObject::CollectGarbage();\r
-                       //DWORD end_point = GetTickCount();\r
-//                     Sleep(50 - (end_point-starting_point));\r
+                       DWORD end_point = GetTickCount();\r
+                       Sleep(50 - (end_point-starting_point));\r
                }\r
 #ifdef _DEBUG\r
                CProfileSample::Output();\r