Currently you can never draw directly to the screen, so this isn't meaningful. You are always drawing into a surface flinger surface, which is composited to the screen when you are done, and screen compositing is vsynced.
On Thu, Dec 16, 2010 at 5:21 PM, Mario Zechner <[email protected]>wrote: > Hi, > > i was curious to see whether the vsynch that is default on all devices > is actually a hardware limitation of a software limitation. For this i > first tried to get EGL_MIN_SWAP_INTERVAL. Neither EGL10 nor EGL11 > expose that constant. Fair enough, the official EGL headers show me > the constant value. I was surprised to find that my Hero has a > EGL_MIN_SWAP_INTERVAL of 0. So you could in fact disable vsynch. > > For that you need eglSwapInterval. Only problem is that it's not > exposed in the Java interface. It is however in the latest r5 release > of the NDK, the first one to expose EGL functionality on the native > side of things. Is there any way to backport this to to native code > for say a 1.5 device? Or a 2.1 device? > > I know that turning of vsynch is probably a bad idea on a battery > powered device. But i'd still like to have complete control if at all > possible. The LG Star (Optimus 2X) featuring that shiny Tegra chip > seems to have vsynch disabled by default, running at higher framerates > than the display is capable of handling (a lot more than 60Hz). > > Ciao, > Mario > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

