开发者

J2ME game smooth refresh

I have developed a game in J2ME. Logic is going perfectly开发者_如何学JAVA. But the problem is that my sprites are not going properly. They appear continuously flashing. I tried to reduce their size but doesn't help much. I also tried to remove sounds and minimize multiplications and divisions with only a little effect.

My refresh rate is once per 30 milliseconds. My images lie between 300 bytes to 1 kb. Any tips?


On a mobile phone, once every 30 milliseconds is possibly too much. I created a JME game using only 15 FPS and animations looked fine. Obviously it depends on the game but I'd look into reducing the frame rate if I was you. As mentioned by @Ashok double buffering is used to solve these kinds of problems and it probably will solve your problem.


better implement double buffering manually if u r using canvas or use gamecanvas which has already double buffer implementation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜