Add update interval config for FpsOverlayPlugin
#17487
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
C-Bug
An unexpected or incorrect behavior
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
Current the FpsOverlayPlugin has a very short update interval, like the video below:
Screen.Recording.2025-01-22.at.10.51.20.mov
Of course we can see that it's approximately 59 fps, because it a relatively stable frame rate. But sometimes we may have some unstable frame rate that may fluctuate from 30+ FPS to 40+ FPS where we can hardly say what the specific frame rate is(I just met this problem recently, and I may add a video example of that if I am available tomorrow).
What solution would you like?
Add
interval
(or other name, I am not good at naming) field, and the FPS displayed will be the average fps of the past interval duration.What alternative(s) have you considered?
The text was updated successfully, but these errors were encountered: