Fix performance issue in paused state
This commit is contained in:
parent
eee95af5e3
commit
efa898ebaa
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,9 @@ int main()
|
|||
}
|
||||
|
||||
if (paused) {
|
||||
// window.display() is where SFML implements frame rate limiting
|
||||
// If we don't run this here, then when paused septadrop will max out the thread
|
||||
window.display();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue