[fpc-pascal] Timer in X11
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Wed Dec 21 17:25:43 CET 2011
On Wed, 21 Dec 2011, Henry Vermaak wrote:
> 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.
But presumably only if you are using a timer, in which case that's exactly
what the programmer wanted ?
Michael.
More information about the fpc-pascal
mailing list