Hi, > Note that it's not enough just to use SDL function to wait for events when > it's > invisible / idle. SDL does 10Hz polling even when waiting for events which > will > drain battery pretty soon. (I filed a bug about that for upstream SDL several > years ago, it's still not fixed, but there's a broken patch available.) That is sad. I was thinking of using an SDL semaphore in the main loop that is locked/unlocked when osso notifies of display on/off. This would not do much then I guess.
> Because of this, in my own SDL code I use select() when the process should > be idle in RAM longer times without draining battery. You can get the SDL X > socket file descriptor like this: Please forgive my ignorence but I do not understand the link between select() and GetUISocket(). -- Willem-Jan de Hoog _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
