[fpc-pascal] Timer in X11

Henry Vermaak henry.vermaak at gmail.com
Wed Dec 21 17:06:26 CET 2011


On 21/12/11 15:56, Felipe Monteiro de Carvalho wrote:
> On Wed, Dec 21, 2011 at 4:53 PM, Henry Vermaak<henry.vermaak at gmail.com>  wrote:
>> Spinning like this is bad news for efficiency and battery life of embedded
>> devices.
>
> Well, using X11 in an embedded device by itself is a very bad choice

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.

Henry



More information about the fpc-pascal mailing list