开发者

Calculate FPS in opengl game for iphone ( EAGLView )

I used the apple's crash landing example as base to program some small games for iphone. Now i would like to meassure the frames per second in my games.

I'm curious about how can I calculate the FPS per second, can anyone help me to under开发者_运维问答stand or point me to any way to do It ?.

Thanks.


You need the time the last frame took to draw in milliseconds, the rest is easy: 1.0f/deltaTime

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜