• 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
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
 
You MUST test applications using OpenGL on an actual device... The emulator will not do anything involving OpenGL correctly...
 
Back
Top Bottom