Hello,
I've been using DrawFormattedText to display text as part of an fMRI
experiment in which each trial contains a statement that is about 4
lines long (I have about 100 trials).
Since DrawFormattedText calls Screen once for each line of text (to
create line breaks), I'm finding that it takes too long to keep
accurate timing for my experiment (it takes about 5ms for each Screen
call, so I'm losing about 20ms to display 4 lines of text, and over
the course of the experiment, I'm off by a few seconds as a result).
I was going to try to draw to an offscreen window first (while the
previous trial is up), but all of the documentation I've been able to
find says that you should use MakeTexture instead of
OpenOffscreenWindow, but I can't figure out how to combine MakeTexture
with DrawFormattedText.
Any advice re: how to improve the timing here would be greatly
appreciated.
Thanks,
Emily
I've been using DrawFormattedText to display text as part of an fMRI
experiment in which each trial contains a statement that is about 4
lines long (I have about 100 trials).
Since DrawFormattedText calls Screen once for each line of text (to
create line breaks), I'm finding that it takes too long to keep
accurate timing for my experiment (it takes about 5ms for each Screen
call, so I'm losing about 20ms to display 4 lines of text, and over
the course of the experiment, I'm off by a few seconds as a result).
I was going to try to draw to an offscreen window first (while the
previous trial is up), but all of the documentation I've been able to
find says that you should use MakeTexture instead of
OpenOffscreenWindow, but I can't figure out how to combine MakeTexture
with DrawFormattedText.
Any advice re: how to improve the timing here would be greatly
appreciated.
Thanks,
Emily