Android 2d canvas game: FPS Jitter problem

后端 未结 5 1525
后悔当初
后悔当初 2021-01-31 07:04

I based my game off of the lunar lander demo, although heavily modified, and I can get around 40-50fps but the problem is it fluctuates between 40-50fps so much that it causes t

5条回答
  •  盖世英雄少女心
    2021-01-31 07:25

    I have a similar issue, the jitter makes large object moves look uneven. Even though the "speed" is the same, different lengths of steps make the movements look jumpy. Broody - You say a SurfaceView is beter, however, this is not true after Android 3.0 as the View is HW accelerated but the canvas returned by .lockCanvas is not. Steven - Yes, this is likely causing poroblems, but is easy to detect. /Jacob

提交回复
热议问题