Finished basic GPU main loop