mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Ignore very long periods of no frame drawing when showing FPS counter ms value
This commit is contained in:
@ -167,6 +167,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
// If the game goes into a suspended state (ie. debugger attached or backgrounded on a mobile device)
|
||||||
|
// we want to ignore really long periods of no processing.
|
||||||
|
if (updateClock.ElapsedFrameTime > 10000)
|
||||||
|
return;
|
||||||
|
|
||||||
mainContent.Width = Math.Max(mainContent.Width, counters.DrawWidth);
|
mainContent.Width = Math.Max(mainContent.Width, counters.DrawWidth);
|
||||||
|
|
||||||
// Handle the case where the window has become inactive or the user changed the
|
// Handle the case where the window has become inactive or the user changed the
|
||||||
|
Reference in New Issue
Block a user