1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:02:57 +08:00

Improve tooltip display when running single thread

This commit is contained in:
Dean Herbert 2022-07-21 12:06:22 +09:00
parent e1a577ea48
commit 728e22fbce

View File

@ -76,9 +76,11 @@ namespace osu.Game.Graphics.UserInterface
{ {
var clock = thread.Clock; var clock = thread.Clock;
string maximum = $"{(clock.MaximumUpdateHz > 0 && clock.MaximumUpdateHz < 10000 ? clock.MaximumUpdateHz.ToString("0") : ""),4}"; string maximum = clock.Throttling
? $"/{(clock.MaximumUpdateHz > 0 && clock.MaximumUpdateHz < 10000 ? clock.MaximumUpdateHz.ToString("0") : ""),4}"
: string.Empty;
textFlow.AddParagraph($"{clock.FramesPerSecond:0}/{maximum}fps ({clock.ElapsedFrameTime:0.00}ms)"); textFlow.AddParagraph($"{clock.FramesPerSecond:0}{maximum}fps ({clock.ElapsedFrameTime:0.00}ms)");
} }
} }
} }