Gameloop improvements + other tweaks