• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps glsurfaceview onDrawFrame rate?

JustFrozen

Well-Known Member
Apr 13, 2010
111
22
I've got a problem where onDrawFrame is called only a few times per second, even if there's nothing but logging inside the function. The same is true for every android opengl example I've run. It's basically impossible to make anything run smooth enough

Am I doing something wrong, or is the simulator just really this slow?

edit: after some more tinkering it turns out i'm getting 6-7 fps. still seems crazy slow though. i've read other people complaining about the simulator being 5x slower than a device. is this true or should i be getting closer to 60fps when rendering barely anything?

edit2: i've noticed i go from 20-30 fps to 8fps when enabling GL_TEXTURE_2D. that doesnt sound right. how can enabling texture mapping drop my framerate so bad? i'm only rendering two quads right now
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones