OnBeginFrame

Called at the beginning of a frame.