eglSwapBuffers takes 9ms-16ms

168 views
Skip to first unread message

flywingsky

unread,
Jul 9, 2013, 3:22:52 AM7/9/13
to andro...@googlegroups.com
how to avoid this problem? can anyone work out ? 

mic _

unread,
Jul 9, 2013, 4:00:08 AM7/9/13
to andro...@googlegroups.com
Sounds like eglSwapBuffers is synchronous and that the refresh rate is locked at 60 fps. That'd give you a worst-case wait of 16 ms. If the blocking nature of the function is a problem for you, try moving the call to a separate thread, if possible.

/Michael 


On Tue, Jul 9, 2013 at 9:22 AM, flywingsky <flywin...@gmail.com> wrote:
how to avoid this problem? can anyone work out ? 

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

flywingsky

unread,
Jul 9, 2013, 5:03:50 AM7/9/13
to andro...@googlegroups.com
yes, the problem it will limit the fps; but if moving the call to a separate thread how to do it?? android platform have many limit;by the way eglSwapInterval it can use?

在 2013年7月9日星期二UTC+8下午4时00分08秒,mic写道:
Reply all
Reply to author
Forward
0 new messages