FPS drops to 1 in unfocused window when Vsync is on

When Vsync is enabled, the game starts calling update once a second upon its window losing focus (and at the same time passes dt=33ms). Is this expected behavior or should I file an issue on GitHub? Is it possible to somehow fight this behaviour?

Are your other settings like this? Both Update Frequency and Swap Interval can affect frame rate.

Otherwise, it could be a time step issue set in code.

I have update frequency set to 60 - maybe this is it? I don’t ever set the time step in code and the swap interval is set to 1.

Unfortunately, resetting update frequency back to 0 didn’t change the reported behavior at all.

I think it’s best if you report and include an empty project with a game.project file configured to behave like you describe.

Thanks, I did exactly that. See VSync causes update rate to drop to 1 FPS when the game window is fully obscured · Issue #12897 · defold/defold · GitHub.