godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.06k stars 65 forks source link

Add keyboard shortcuts to navigate to previous/next frame in Profiler (e.g. Left/Right) #9767

Open hsandt opened 2 weeks ago

hsandt commented 2 weeks ago

Describe the project you are working on

An adventure game

Describe the problem or limitation you are having in your project

I cannot move to left/right in the Profiler frame view to identify a spike lag

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Binding contextual keys to decrement/increment the frame number, as currently done exclusively via the Frame # field up/down arrow buttons, would make navigation faster:

image

Default could be Left/Right, or Ctrl+Left/Right like the animation editor.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Profiler frame is 770. Press (customizable) Left to go to previous frame. Profiler frame is now 769. Press (customizable) Right to go to previous frame. Profiler frame is now 770 again.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

It's a core panel.