当前位置:网站首页>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 :
边栏推荐
- Tencent music knowledge map search practice
- 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
- 04 disk space management
- Is it safe to fry stocks with compass or securities software? Where can I open an account and how
- Is flush app regular? Is it safe or not
- The correct way to clear the cache of the computer. The computer will not get stuck immediately after changing. practical
- Svn various color states
- VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
- lombok
- Is it safe for qiniu school to open an account in 2022?
猜你喜欢

Unable to connect to the server remotely locally using the Jupiter notebook

OSI notes sorting

Finger collar pin exclusive Medal

1.0-mq getting started and using

"Developer theory" multi system integrated development - rapid nailing of enterprise owned systems

Vbpr (visual Bayesian personalized ranking) paper summary
![[deep learning series] - visual interpretation of neural network](/img/f9/1402fdb1d8aa266529f963b41bedae.jpg)
[deep learning series] - visual interpretation of neural network

Lantern Festival, learning at the right time! Novice training camp attacks again, learning buff continues to fill up

Working principle and experimental analysis of DHCP
Cloud native 04: use envoy + open policy agent as the pre agent
随机推荐
What is a server? (Powercert animated videos)
2022 oceanbase technical essay contest officially opened | come and release your force
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
Idea implements hot deployment
Boomfilter learning
JS__ This, arguments, cloning, ternary operator__ Duyi
Lesson 1 Preparation
VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
Code program related problems troubleshooting directory
[machine learning] machine learning from zero to mastery -- teaching you how to use decision tree to predict contact lens types
Installing and configuring redis under Linux
Tencent music knowledge map search practice
[important notice] developer document update (12.13-12.19)
Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
A simple file searcher
[distributed system design profile (1)] raft
Explain memcached principle in detail
Literals and type conversions of basic data types
very good
109 practical shell scripts