Added a sleep to renderer if you're tabbed out of the game to prevent desktop lag.

Signed-off-by: MaloW <MaloW@spray.se>