Skip to content

Commit

Permalink
Remove sleep time when the game is inactive
Browse files Browse the repository at this point in the history
Fixes jittery/slow rendering speed when the game is not the focused window.
  • Loading branch information
ethanmoffat committed Jun 1, 2024
1 parent 002e4cc commit 6e06255
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EndlessClient/GameExecution/EndlessGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ protected override void Initialize()
IsFixedTimeStep = false;

TargetElapsedTime = TimeSpan.FromMilliseconds(FixedTimeStepRepository.TICK_TIME_MS);
InactiveSleepTime = TimeSpan.FromMilliseconds(0);

_previousKeyState = Keyboard.GetState();

Expand Down

0 comments on commit 6e06255

Please sign in to comment.