Merge "SF: call onFrameBegin before scheduling the next frame" into main