Skip to content

Commit

Permalink
Improved frametime display
Browse files Browse the repository at this point in the history
  • Loading branch information
clibequilibrium committed Apr 30, 2023
1 parent 7bf072e commit 24c55c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion equilibrium/Systems/UI/Docking/DockspaceSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected override void Render(float deltaTime)
ImGui.Text(Bgfx.bgfx.get_renderer_type().ToString());

ImGui.SameLine(region.X - 175f, 0);
ImGui.Text(string.Format("{0:0.##} FPS ({1:1.##} ms)", ImGui.GetIO().Framerate, 1000.0f / ImGui.GetIO().Framerate));
ImGui.Text($"{ImGui.GetIO().Framerate:F2} FPS ({1000.0f / ImGui.GetIO().Framerate:F2} ms)");

float button_size = 25.0f;
ImGui.SameLine(region.X - button_size, 0);
Expand Down

0 comments on commit 24c55c6

Please sign in to comment.