FPS slows down when not resizing window
-
I have a problem when my window freezes then my fps counter will slow down and freeze.
To me I think that my window will not focus when not interacting, but then I figured out that it will only focus when resizing the window.
However when I stop resizing the window it goes back to its freezing phase and will continue until it resizes once again.Any suggestions on how to fix this?
Thanks!Video on the problem:
https://drive.google.com/file/d/1s0W2a66Hrk01iJwrhuQ4zfUXqNCyB9UP/view?usp=sharing -
Resizing and moving the window will cause updates, renders and repaints. If everything is done and nothing changes, it doesn't have to get updated at such high rate as it would, when you grab the window and move it around and change dimensions of the content.
Just a guess. Maybe it might be helpful if you show some code, how the window is rendered.
Is it just one window or does everything behave like this? -