Paused=true gives 50% CPU usage

I have a game that uses about 15% cpu in idle. However, when i call paused=true the game pauses and it takes 50% cpu. Same thing happens when i minimize the window or have another window in focus.

I added a short wait when you’re paused, so that should fix the issue