mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Ignore very long periods of no frame drawing when showing FPS counter ms value
This commit is contained in:
parent
81c079c937
commit
4f7d63be29
@ -167,6 +167,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
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);
|
||||
|
||||
// Handle the case where the window has become inactive or the user changed the
|
||||
|
Loading…
Reference in New Issue
Block a user