• Advertisement
Sign in to follow this  

SurfaceView extremely low frame rate.

This topic is 1261 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For some reason when using surface view I'm getting around 5 fps... Here's an idea of what I coded to measure the fps:

//game loop part of code(in another thread)
long start = System.currentTimeMillis();
while(game running){
end = System.currentTimeMillis();
if ((end - start) >= 1000) {
Log.d("PERSONAL", "FPS: " + fps + " milliseconds " + Long.toString(end - start));
start = System.currentTimeMillis();
fps = 0;


public void drawMethod(){

My question is how do I fix this problem of having such a low frame rate? And just to be clear when I did this test I wasn't drawing ANYTHING, I wanted to see what the baseline FPS would be without any drawing operations. 

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement