added ability to do supersampling, framerate limit