Try to solve gameloop delay accumulation (Occurs on raspberryPi)