Friday, September 3, 2010

[android-developers] how to set eglSwapInterval when using GLSurfaceView?

So I am a lazybones using GLSurfaceView and loving it. But now that
my code is running too darn fast (heh), I would like to slow it down
via setting eglSwapInterval to 2 or something. Just to be nice to the
battery.

But, being a lazybones, I can find no way of doing this when using
GLSurfaceView. (and hacking an early return from onDrawFrame() was
very unsatisfying).

Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate