Dropped frames after preloading videos

OS (e.g. Win10): macOS Ventura 13.4.1
PsychoPy version (e.g. 1.84.x): 2021.2.0
What are you trying to achieve?:
We want to display 8 movie and audio stimuli per trial and have them display sequentially with no lag between them.
What did you try to make it work?:

  1. We tried creating a loop that iterates through a routine with a static interval that loads the movie and audio stimuli. This did not work because for the static interval to be long enough to fully load the video without any issues, it created too long of a delay between each movie’s presentation.

  2. We then decided to preload all the movie and audio stimuli before the task starts and choose which MovieStim3 movie gets played in a loop (images below).

This allowed us to play the movies sequentially without lag successfully, but resulted in multiple of the following warnings that also result in frame drops in the beginning of some of the movies:

202.2367 WARNING 0.0761184269504156: Video catchup needed, advancing self._nextFrameT from 0.016683350016683352 to 0.033366700033366704
202.2368 WARNING 0.07626647996949032: Video catchup needed, advancing self._nextFrameT from 0.033366700033366704 to 0.05005005005005006

After some digging, these warnings happen before the movies are even played.

Has anyone encountered and been able to fix this issue?