From: Jorrit T. <jor...@gm...> - 2007-12-23 19:48:21
|
As a test I changed the default runloop to this code: csTicks min_elapsed = 100; while (!eh->ShouldShutdown()) { if (vc) { csTicks elapsed = vc->GetElapsedTicks (); if (elapsed < min_elapsed) csSleep (min_elapsed - elapsed); vc->Advance(); } q->Process(); } I would have expected this to make the framerate hover at about 10 fps. However. The framerate stays at a steady 20 fps instead. Any ideas why this would be? Greetings, -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 |