Prevent label width from flickering rapidly in editor frametime panel

This also improves the background display by drawing a single background
for all 3 labels. This avoids visible corners between each label.
This commit is contained in:
Hugo Locurcio
2024-05-22 01:08:58 +02:00
parent b947c53ddc
commit 60084dcc2c
2 changed files with 23 additions and 17 deletions

View File

@@ -255,6 +255,8 @@ private:
ViewportNavigationControl *look_control = nullptr;
ViewportRotationControl *rotation_control = nullptr;
Gradient *frame_time_gradient = nullptr;
PanelContainer *frame_time_panel = nullptr;
VBoxContainer *frame_time_vbox = nullptr;
Label *cpu_time_label = nullptr;
Label *gpu_time_label = nullptr;
Label *fps_label = nullptr;