当前位置:网站首页>Summary of several methods for FPS calculation
Summary of several methods for FPS calculation
2022-06-25 21:13:00 【Rabbit cloud program】
Frame rate (FPS, frame per second) Computing is a common topic in game programming , Because it is displayed in the picture refresh and visual sense , So relatively speaking , The frame rate has a great impact on the user experience . This is also a lot of large 3D Important points to be improved in the game , It means that you should constantly optimize the rendering speed and performance , Constantly improve the picture quality . Here are several calculated frame rates fps Methods .
One 、 Fixed time frame method
In fact, the core of this method is 1s How many frames have been refreshed in , Completely regardless of other equipment , Calculate the frame rate relative to the reference , The most accurate method can also be called dps, namely data per second.
The formula for calculating the frame rate is :
fps = frameNum / elapsedTime;If you record the number of frames in a fixed time , You can calculate the synchronization rate . This method is often used .

The fixed time is 1s, In fact, the accuracy of this method is relatively low , That is, there is no high-precision method to obtain the timestamp , In some methods that require high data , It is better to use the method of obtaining time with high accuracy .
There's another way to write it :

Two 、 Fixed frame time method
The formula for calculating the frame rate is :
边栏推荐
- Svn various color states
- Explain memcached principle in detail
- Tencent music knowledge map search practice
- lombok
- Illustration tcp/ip - Chapter 1 and 2 Notes
- How does zhiting home cloud and home assistant access homekit respectively? What is the difference between them?
- Getting started and using postman
- Lesson 4 beautifulsoup
- 启牛学堂证券开户安全嘛?
- "Developer theory" multi system integrated development - rapid nailing of enterprise owned systems
猜你喜欢

Soft test intermediate simple notes
Live broadcast preview | front line experts invite you to talk: the value of data science enabling multiple application scenarios
Online yaml to XML tool
Exploration of advanced document editor design in online Era

Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
![[nailing scenario capability package] exhibition admission](/img/a1/5900ad0d3c89f21da3a2d96c91943a.jpg)
[nailing scenario capability package] exhibition admission

1.0-mq getting started and using

Alicloud disk mounted locally
laf. JS - open source cloud development framework (readme.md)
Cloud development practice of the small program for brushing questions in the postgraduate entrance examination - page design and production (home page of the question bank, ranking page, my)
随机推荐
Differences between modems and routers (powercert animated videos)
Boomfilter learning
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
Heavy update! Yolov4 latest paper! Interpreting yolov4 framework
The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
Yanjiehua, editor in chief of Business Review: how to view the management trend of business in the future?
银河证券靠谱吗?开证券账户安全吗?
Cloud development practice of the small program for brushing questions in the postgraduate entrance examination - page design and production (home page of the question bank, ranking page, my)
[nailing scenario capability package] smart office phone
IPv4 and IPv6 (powercert animated videos)
How does zhiting home cloud and home assistant access homekit respectively? What is the difference between them?
Lesson 4 beautifulsoup
同花顺炒股软件开户是合法的吗?安全吗
Insert and update each database
2022 "gold, silver and four" is a must for job hopping. You must know 100 questions in 2022 intermediate and advanced Android interview to realize your big factory dream
What is a server? (Powercert animated videos)
How to close gracefully after using jedis
Node connection MySQL
04 disk space management
8 minutes to understand the wal mechanism of tdengine