首页 > 其他 > 详细

GLUT Tutorials 15:帧率

时间:2020-05-23 12:27:37      阅读:43      评论:0      收藏:0      [点我收藏+]

博客转自:http://www.lighthouse3d.com/tutorials/glut-tutorial/frames-per-second/

How fast is your application really going? Sometimes we make small changes and we can’t be sure of the effect they had on the performance, namely how do they affect the number of displayed frames per second. In this section we’ll see how we can use GLUT to count the number of frames per second. Note that this shouldn’t be considered a true benchmark, just a guide value.

GLUT provides a function that allows us to query many features of the system, one of them being the number of milliseconds from the call to glutInit. The function is glutGet and the syntax is as follows:

int glutGet(GLenum state);

Parameters:
state – specifies the value we want.

 

GLUT Tutorials 15:帧率

原文:https://www.cnblogs.com/flyinggod/p/12941708.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!