当前位置:网站首页>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 :
边栏推荐
- Basic process of configuring utf8 in idea
- Multi database and multi table backup and restore of MySQL under Linux
- What is a subnet mask? (Powercert animated videos)
- Introduction to interface test, interface protocol and common interface test tools
- Ensure the decentralization and availability of Oracle network
- Instant aesthetics of the Centennial Olympic Games: beauty in the air, condensed in minutes and seconds - Alibaba cloud video cloud AI editorial department "cloud smart scissors"
- Idea implements hot deployment
- Flexible scale out: from file system to distributed file system
- 2022 oceanbase technical essay contest officially opened | come and release your force
- Nmap is simple and practical
猜你喜欢

Openocd adds third-party device support: ht32f52352 Cortex-M0+

Illustrated with pictures and texts, 700 pages of machine learning notes are popular! Worth learning
Why doesn't anyone read your hard-working blog? Do you really understand the skills of framing, typesetting and drawing?

Finger collar pin exclusive Medal

Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com

lombok

Compile 6relayd using the cross compiler

OSI notes sorting
Day 28/100 CI CD basic introductory concepts
How to play one to many in JPA?
随机推荐
Inventory - those automated test interview questions you can't help but know
HMS core actively explores the function based on hardware ear return, helping to reduce the overall singing delay rate of the singing bar by 60%
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
Win10 common software
同花顺app是正规的吗?到底安不安全
[buucry] sensor (Manchester code)
ThreadLocal class
What is a server? (Powercert animated videos)
Shell scripts: Variables
Installing and configuring redis under Linux
The user name and password will be automatically filled in when adding a form
2022 oceanbase technical essay contest officially opened | come and release your force
How to close gracefully after using jedis
Is flush app regular? Is it safe or not
Why doesn't anyone read your hard-working blog? Do you really understand the skills of framing, typesetting and drawing?
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part 2)
A simple file searcher
04 disk space management
[nail scenario capability package] hospital visitor verification
Cvpr2021 collection of papers | cvpr2021 latest papers | cvpr2021 review results | cvpr2021 admission results