Change gameloop to adjust the resolution
Fixed a small problem in debug drawing of physics objects