Pre-loading Routine

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3.0.5
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
An RSVP (rapid serial visual presentation) expierment which presents some sequences of pictures - exactly 118ms duration for each picture, with no delay. But psychopy shows the pictures with different durations (i’m think that is because slow loading issues)… So i’ve thought that i’ll can handle with the delay by pre loading the next routines on each trial (there are 140 trials in the “trials” loop), so there is not delay.
What did you try to make it work?:
I wrote some code to preload the pictures path on the beginning of each trial.
Here’s the expierment formation and the settings for the pictures and the frames:


What specifically went wrong when you tried that?:
ther’s variant in the pictures duration as i found by some code on the beginnig of each routine:

start = time.time()
a = range(100000)
b = []
for i in a:
    b.append(i*2)

and at the end of each routine:

end = time.time()
print('dist: ')
print(end - start)

Also, i have alot of dropped frames:
ndentationError: unexpected indent

########## Running: C:\Users\USER\Desktop\‏‏מחקר2 - עותק\untitled1.py ##########
4.1728 WARNING User requested fullscreen with size [1536 864], but screen is actually [1920, 1080]. Using actual size
5.0356 WARNING Monitor specification not found. Creating a temporary one…
5.0365 WARNING User requested fullscreen with size [800 600], but screen is actually [1920, 1080]. Using actual size
6.6529 WARNING t of last frame was 436.25ms (=1/2)
7.4833 WARNING t of last frame was 199.99ms (=1/5)
7.6288 WARNING t of last frame was 45.82ms (=1/21)
7.6491 WARNING t of last frame was 20.33ms (=1/49)
7.7825 WARNING Multiple dropped frames have occurred - I’ll stop bothering you about them!
Include pasted full error message if possible. “That didn’t work” is not enough information.