mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09: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;
|
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…
x
Reference in New Issue
Block a user