[fpc-pascal] Timer in X11
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Wed Dec 21 17:26:06 CET 2011
On Wed, Dec 21, 2011 at 5:06 PM, Henry Vermaak <henry.vermaak at gmail.com> wrote:
> Better tell Maemo they've made a very bad choice, then. It's not just
> embedded devices, laptops have batteries, too. You're wasting CPU and power
> just spinning around a loop, so even if your app isn't active, it's still
> waking up every 50ms. I don't consider this very good programming practice.
I tested with top and it doesn't even show my application in the top
20 users of CPU.
Anyway, I changed in this rev:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&root=lazarus&revision=34354
It now adjusts the interval acoording to the installed timers, up to a
maximum of 1 second.
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list