Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the editor profiler frame history default and maximum limit #61481

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 27, 2022

master version of #61482.

The new default value (1800) allows storing 30 seconds of profiling at 60 FPS.

The new maximum value (10000) allows storing about 3 minutes of profiling at 60 FPS.

The profiler graph will scale accordingly to the chosen setting, so the default value is kept relatively low to prevent the graph from looking too squished on narrow displays. It might be possible to implement automatic scaling of the generated image according to its width (using a TextureRect node and region properties to display the texture), but this is something better left to a future pull request. This would also allow for implementing zooming on the profiler graph (both horizontal and vertical).

I did some testing and it seems to hold up OK at both the default value and maximum value.

See godotengine/godot-proposals#2045.

The new default value (1800) allows storing 30 seconds of profiling
at 60 FPS.

The new maximum value (10000) allows storing about 3 minutes of
profiling at 60 FPS.

The profiler graph will scale accordingly to the chosen setting,
so the default value is kept relatively low to prevent the graph
from looking too squished on narrow displays.
@Faless Faless merged commit f805ecf into godotengine:master Jun 3, 2022
@Faless
Copy link
Collaborator

Faless commented Jun 3, 2022

Thanks!

@Calinou Calinou deleted the profiler-increase-frame-history branch June 3, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants