Anders, le Wed 12 Mar 2008 00:56:42 +0100, a écrit : > Samuel Thibault wrote: > >When SDL is invisible/minimized, there is no need to keep calling the > >VGA refresh 33 times per second. This patch reduces in that case the > >rate to 2 times per second, which should be responsive enough for the > >un-minimizing event. > > > > Is there any need to update at all, if the canvas is not visible?
Indeed not. We however still need to have a look at the SDL queue, to detect the un-minimize event. > How about some infrastructure for pausing the update completely? I > think that could also be used for VNC displays, when no client is > connected. Actually in Xen it goes even further: when the client hasn't sent an update request since a long time, the VNC server assumes the client is minimized, and in pratice that is the case. Samuel