If you learn about the event structure, the parts that need to go in there (and where they go) should become obvious. Bascially, if something changes due to a user event (eg: camera properties controlled from the FP) then you don't need to do that every time you go around the loop - put it in an event case that only executes when the FP control value changes (there's a big hint ). At the moment, you're setting the camera properties every loop which takes time, thus the loop will run slower, and, as a consquence, all the other things in there will run slower.