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

No way to start Profiler before starting game #72524

Closed
cosmoddd opened this issue Feb 1, 2023 · 7 comments
Closed

No way to start Profiler before starting game #72524

cosmoddd opened this issue Feb 1, 2023 · 7 comments

Comments

@cosmoddd
Copy link

cosmoddd commented Feb 1, 2023

Godot version

4.0 Beta 16

System information

Windows 11 Vulkan

Issue description

In the online manual, it states:

To begin profiling, click on the Start button in the top-left. Run your game and data will start appearing. You can also start profiling at any time before or during gameplay, depending on if you want.

I want to be able to profile my game's startup time to suss out any bottlenecks during startup.
However, the option to start profiling before the game as it starts is not possible in the current 4.0 build. In 3.x, this option is available.

2023-02-01 11_20_50-(_) Test - Godot Engine

Steps to reproduce

Click on the Debugger tab at the bottom of the screen.
Click on the Profiler tab in the Debugger window.
Notice that you cannot press "Start".
Start any scene.
Notice that you can now press "Start"
Stop the scene.
Notice that you can no longer press "Start" on the profiler.

Minimal reproduction project

This issue is apparent regardless of the project.

@Zireael07
Copy link
Contributor

Zireael07 commented Feb 1, 2023

Related to #71111 (profiler button being grayed out)

@cosmoddd
Copy link
Author

cosmoddd commented Feb 1, 2023

As this is the 4.0 build (# 71111 is still on 3.x) and the Profiler does work once the game is running, I'm not sure the two issues are related.

@Zireael07
Copy link
Contributor

Whoops, didn't notice THAT. Right.

@Calinou
Copy link
Member

Calinou commented Feb 1, 2023

The lack of autostart functionality is being tracked in godotengine/godot-proposals#6017.

cc @Faless, as they rewrote the editor debugger for 4.0.

@lostminds
Copy link

I think this was changed in #70151 which fixed some other inconsistencies with the profiler Start/Stop buttons.
Personally I think implementing an autostart feature would be a better solution, but I'm guessing just allowing it to be started again ahead of launch would be an easier temporary fix as this is how it used to work.

@stmSi
Copy link
Contributor

stmSi commented Mar 2, 2023

@lostminds There is a autostart PR for this feature. I am waiting for review.

@Calinou
Copy link
Member

Calinou commented Sep 16, 2024

This was implemented by #96759 (with slightly different UX), closing.

@Calinou Calinou closed this as completed Sep 16, 2024
@Calinou Calinou modified the milestones: 4.x, 4.4 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants