Hi,I know this might be a very basic question but I looked online and couldn't find an answer. So maybe someone can help!I have compiled an experiment (using Builder v.1.76.00) in which I will be showing participants a lot of images (and they'll be rating them). Even though the images (.png) are not very large, the experiment is running extremely slow (sometimes an image takes up to 40 seconds to load). Searching online, I found that is best to preload all images prior to running the experiment, so that the images don't need to be called "live". However, how do I do that? How do I preload all the images that will be used in the experiment, so that the routines don't run super slow?Thanks,A.--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/psychopy-users/-/q49jz_aQiPgJ.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msg/psychopy-users/-/g0egra7vkQ4J.
To view this discussion on the web visit https://groups.google.com/d/msg/psychopy-users/-/fkeTTlY7n8oJ.
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/kw5qRatA9f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFh4cA385odLce3JbjGgM6Dk5BcTQGCnHeVw2qx_7joC3Q%40mail.gmail.com.
>> > file� so
>> > to display the image would I put something like $pictures[trial] in the
>> > "Image" part of an image component?
>>
>> I think that's exactly right.
>>
>> --Jeremy
>
> --
> You received this message because you are subscribed to the Google Groups
> "psychopy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to psychopy-user...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFh4cA385odLce3JbjGgM6Dk5BcTQGCnHeVw2qx_7joC3Q%40mail.gmail.com.
> To post to this group, send email to psychop...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/psychopy-users/8c24ded6-7929-4e34-823e-b8a1d7b8e9fd%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/kw5qRatA9f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAMdATGrVurhMqq-3JgHp%3DH7KZZRpOWMFMemGdJXfdJKGEWLHWw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Jonathan Peirce Nottingham Visual Neuroscience http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
>> > file… so
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/52CFC712.1080408%40nottingham.ac.uk.
#sometime before first image presentation:StaticPeriod was added in v1.78 mainly as a way to make the above code easier from within Builder.
stim.setImage(imageList[0])
for imageName in imageList[1:]: #loop through other images
��� stim.draw()
��� win.flip()
��� tStart = clock.getTime() #the precise moment the stimulus appeared
��� stim.setImage(imageName) #set to next image in the list
��� #now work out how much longer to wait, accounting for stim loading
��� tElapsed = clock.getTime()-tStart
��� tRemaining = tStimTime - tElapsed
��� core.wait(tRemaining)
>> > file� so
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.�� Please do not use, copy or disclose the information contained in this message or in any attachment.� Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
--To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/52CFC712.1080408%40nottingham.ac.uk.
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/kw5qRatA9f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAMdATGoL1wi3rYoBXSQd-8jDYAbEhw-5hE5OviERq-U76nhHOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Jonathan Peirce Nottingham Visual Neuroscience
If you're using coder (I assumed you were on Builder) then you can do this manually, without the need for a static period as such. The logic (pseudo code) is like this:
#sometime before first image presentation:
stim.setImage(imageList[0])
for imageName in imageList[1:]: #loop through other images
stim.draw()
win.flip()
tStart = clock.getTime() #the precise moment the stimulus appeared
stim.setImage(imageName) #set to next image in the list
#now work out how much longer to wait, accounting for stim loading
tElapsed = clock.getTime()-tStart
tRemaining = tStimTime - tElapsed
core.wait(tRemaining)
>> > file… so
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
--To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/52CFC712.1080408%40nottingham.ac.uk.
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/kw5qRatA9f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAMdATGoL1wi3rYoBXSQd-8jDYAbEhw-5hE5OviERq-U76nhHOQ%40mail.gmail.com.
-- Jonathan Peirce Nottingham Visual Neurosciencehttp://www.peirce.org.uk/
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/kw5qRatA9f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/52D281D6.5050109%40gmail.com.