当前位置:网站首页>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 :
边栏推荐
- Boomfilter learning
- 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)
- How to play one to many in JPA?
- Day 28/100 CI CD basic introductory concepts
- Nmap is simple and practical
- Openocd adds third-party device support: ht32f52352 Cortex-M0+
- JS__ Inheritance mode, namespace, object enumeration__ Duyi
- Bank digital transformation layout in the beginning of the year, 6 challenges faced by financial level structure and Countermeasures
- What is an app circle of friends advertisement
- Xshell mouse configuration
猜你喜欢
Literals and type conversions of basic data types
Yolov4 improved version comes out! Yolov4 extended edition! Yolov4 launched scaled-yolov4: scaling cross stage partial network
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part I)
This is a simple and cool way to make large screen chart linkage. Smartbi will teach you
laf. JS - open source cloud development framework (readme.md)
Docker failed to remotely access 3306 after installing MySQL
[buucry] sensor (Manchester code)
1.1-mq visual client preliminary practice
lombok
js (1)
随机推荐
Inventory - those automated test interview questions you can't help but know
Day 29/100 local SSH password free login to remote
MySQL installation tutorial
2022 oceanbase technical essay contest officially opened | come and release your force
2022年启牛学堂证券开户安全嘛?
Idea implements hot deployment
[data recovery in North Asia] a data recovery case in which the upper virtual machine data is lost due to the hard disk failure and disconnection of raid6 disk array
Section 13: simplify your code with Lombok
OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
laf. JS - open source cloud development framework (readme.md)
"Developer theory" multi system integrated development - rapid nailing of enterprise owned systems
[nailing scenario capability package] company / Park Digital canteen
Illustration tcp/ip - Chapter 1 and 2 Notes
Feature Engineering in simple terms – a practice guide based on openmldb (Part 1)
Node installation method you don't know
Analysis and cleaning of kdevtmpfsi virus content
Illustration tcp/ip - Chapter 3 and 4 notes
[phase 23] phased summary of spring recruitment practice (Alibaba cloud has OC)
OSI notes sorting
Interview shock: talk about thread life cycle and transformation process?