Enabled Vsync to free the CPU
Removed unused portions of code