mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
Improve tooltip display when running single thread
This commit is contained in:
parent
e1a577ea48
commit
728e22fbce
@ -76,9 +76,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user