Pre-allocate Textures?

7 views
Skip to first unread message

Derric Williams

unread,
Aug 16, 2013, 5:52:45 PM8/16/13
to psychop...@googlegroups.com
Hello,

I'm attempting to use relatively large images (1536x1024) with the ImageStim class.  I've noticed that when I use the "setImage()" method to change the image, it takes about 150ms, so several frames are dropped.  Is there any way that I could pre-allocate or pre-convert these images to their textures to prevent this from happening?

Thanks,
Derric

Derric Williams

unread,
Aug 16, 2013, 5:54:40 PM8/16/13
to psychop...@googlegroups.com
I just noticed the "StaticPeriod" code.  I'll look into using that.  

Jeremy Gray

unread,
Aug 16, 2013, 6:43:07 PM8/16/13
to psychop...@googlegroups.com
I just noticed the "StaticPeriod" code.  I'll look into using that.  

yes -- your situation is exactly the kind of thing its intended for. let us know how it goes.

--Jeremy

 
On Friday, August 16, 2013 2:52:45 PM UTC-7, Derric Williams wrote:
Hello,

I'm attempting to use relatively large images (1536x1024) with the ImageStim class.  I've noticed that when I use the "setImage()" method to change the image, it takes about 150ms, so several frames are dropped.  Is there any way that I could pre-allocate or pre-convert these images to their textures to prevent this from happening?

Thanks,
Derric

--
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/e5e8ba69-8f12-410b-93ae-dfe3be623668%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages