Unexpected delay due to MovieStim in looped routine (PsychoPy)

What is the code for? I think most of it should be deleted and you should just use the start times and durations of the builder components.