Added target frame rate parameter to Main
Attempting to move Futile's rendering code to OnPreRender (needs testing)