How to limit framerate when using Android's GLSurfaceView.RENDERMODE_CONTINUOUSLY?

后端 未结 6 925
自闭症患者
自闭症患者 2020-12-12 16:53

I have a C++ game running through JNI in Android. The frame rate varies from about 20-45fps due to scene complexity. Anything above 30fps is silly for the game; it\'s just b

6条回答
  •  清歌不尽
    2020-12-12 17:25

    You may also try and reduce the thread priority from onSurfaceCreated():

    Process.setThreadPriority(Process.THREAD_PRIORITY_LESS_FAVORABLE);
    

提交回复
热议问题