TrevorBradley
Active Member
- Joined
- Nov 6, 2007
- Messages
- 732
I've been doing a fair amount of work trying to get consistent frame rates for my game. However after doing a bit of research, it appears that Linux kernels (the 32 bit ones anyways) have a coded 10ms delay in the evaluation of timer events. That is, you can't sleep in intervals of less than 10ms.
Source : http://www.penguin-soft.com/penguin/man/2/nanosleep.html , see also http://www.google.ca/search?q=SDL_Delay+10ms
Now, apparently it's possible to hack the kernel to allow a granularity of less that 10ms (1ms is typical). I'm wondering if the Pandora Kernel devs had considered making this change, or if it adds too many instabilities. It might be useful for all sorts of dev work.
The alternative is to busy-loop, which sucks up CPU like crazy.
Source : http://www.penguin-soft.com/penguin/man/2/nanosleep.html , see also http://www.google.ca/search?q=SDL_Delay+10ms
Now, apparently it's possible to hack the kernel to allow a granularity of less that 10ms (1ms is typical). I'm wondering if the Pandora Kernel devs had considered making this change, or if it adds too many instabilities. It might be useful for all sorts of dev work.
The alternative is to busy-loop, which sucks up CPU like crazy.