Dear Psychtoolbox Users and Gurus,
I have a problem with a RUSHed movie and I could use some help.
In a nutshell, I miss a video frame on about 3% of the trials.
The stimuli in my experiment are simple movies with the following
frame structure: 3 noise + 3 Gabor + 3 noise + 1 blank. All images
are 256 by 256 pixels. I RUSH the movie at MaxPriorityLevel as shown
below; the long integers are buffer pointers:
%% Begin RUSHed code ------------------------------
'SCREEN(235305168,'WaitBlanking');'
'startTime=GetSecs;'
'SCREEN('CopyWindow',235304896,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305344,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305472,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305600,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',2);'
'finishTime=GetSecs;'
%% End RUSHed code ------------------------------
Now, there are 11 frames in this simple movie and it should take
129.4 msec from startTime to finishTime at 85 Hz (11.76 msec/frame).
That's what happens on 97% of the trials. Occasionally, however,
finishTime-startTime==117.6 msec, which is one frame short.
About 30 trials out of 1200 have this problem. I couldn't find any
regularity it its appearance.
I can think of various reasons (e.g. inadequate CopyWindow speed)
that can slow the movie down. But why on earth would it finish earlier
than scheduled?
Any suggestions will be most welcome. The exact hardware and software
environment is summarized below. The same program ran without a
glitch on a different computer with a different video card before.
17" Hewlett Packard hp91 color monitor.
Driven by ATI Radeon 8500 10-bit video card (DualHead driver 1.0f72).
Resolution 1280x1024 pixels, 85 Hz refresh rate, 32-bit pixel depth.
Mac OS 9.2.2, MATLAB 5.2.1, PsychToolbox 2.53.
Another monitor is hooked to the built-in card of the Macintosh,
but all stimuli are presented on the Radeon 8500 (Screen 1).
Virtual memory is off. SCREEN Backgrounding is off.
% SCREENTest results, 26 Jan 2005: %%%%%%%%%%%%%%%%%%%%%%%%%%
*** ptime's PowerMac3,3/400, Mac OS 9.2.2
********************************
G4, 400 MHz, memory bus 100 MHz, 62.770 Mflop/s
Psychtoolbox 2.53, 12 August 2002, Matlab 5.2.1.1421
*** Screen 0
*************************************************************
ATI Radeon 7200, retail, PCI, aka "Radeon Mac Ed. (PCI)"
"ATY,RADEONp" (.Display_RADEON version 1.0f59) in slot SLOT-D
10 bit dacs. 1024x768 85 Hz. (56,60,65,67,70,72,75,76,85,90,100,120
Hz avail)
<...snip...>
*** Screen 1
*************************************************************
ATI Radeon 8500, port A
"ATY,R200i_A" (.Display_DualHead version 1.0f72) in slot SLOT-A
10 bit dacs. 1280x1024 85 Hz.
(56,60,65,67,70,72,75,76,85,90,100,120,150 Hz avail)
Prefs: cscGetClutBehavior, cscGetNextResolution,
SetClutDuplicates8Bits,
DipPriorityAfterSetClut, MinimumSetClutPriority 2, BlankingDuration
0.0030 s.
- - - - - - - - - - - - - - - - - - - - - - -
- -
pixel size 8 16 32 bits
pages 1 1 1
CopyWindow (ie CopyBits) 185 188 188 MB/s
CopyWindow (ie CopyBits) AGP 344 344 344 MB/s
CopyWindow (ie CopyBits) VRAM 1810 1801 1806 MB/s
SetClut suppresses ints. for 0.0 0.0 0.0 frames
LoadClut vs. GetClut? ( 8 bits) == == na
LoadClut vs. GetClut? (10 bits) == == na
<...snip...>
Any suggestions?
-- Alex
-------------------------------------------------------
Alexander A Petrov: apetrov (at) uci (dot) edu
Post-doctoral Researcher
Department of Cognitive Sciences
University of California, Irvine
http://www.socsci.uci.edu/~apetrov/
It is better to light one candle than to
curse the darkness. --- Confucius ---
-------------------------------------------------------
I have a problem with a RUSHed movie and I could use some help.
In a nutshell, I miss a video frame on about 3% of the trials.
The stimuli in my experiment are simple movies with the following
frame structure: 3 noise + 3 Gabor + 3 noise + 1 blank. All images
are 256 by 256 pixels. I RUSH the movie at MaxPriorityLevel as shown
below; the long integers are buffer pointers:
%% Begin RUSHed code ------------------------------
'SCREEN(235305168,'WaitBlanking');'
'startTime=GetSecs;'
'SCREEN('CopyWindow',235304896,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305344,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305472,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',3);'
'SCREEN('CopyWindow',235305600,235305168,[0 0 256 256],[257 639 513
895]);'
'SCREEN(235305168,'WaitBlanking',2);'
'finishTime=GetSecs;'
%% End RUSHed code ------------------------------
Now, there are 11 frames in this simple movie and it should take
129.4 msec from startTime to finishTime at 85 Hz (11.76 msec/frame).
That's what happens on 97% of the trials. Occasionally, however,
finishTime-startTime==117.6 msec, which is one frame short.
About 30 trials out of 1200 have this problem. I couldn't find any
regularity it its appearance.
I can think of various reasons (e.g. inadequate CopyWindow speed)
that can slow the movie down. But why on earth would it finish earlier
than scheduled?
Any suggestions will be most welcome. The exact hardware and software
environment is summarized below. The same program ran without a
glitch on a different computer with a different video card before.
17" Hewlett Packard hp91 color monitor.
Driven by ATI Radeon 8500 10-bit video card (DualHead driver 1.0f72).
Resolution 1280x1024 pixels, 85 Hz refresh rate, 32-bit pixel depth.
Mac OS 9.2.2, MATLAB 5.2.1, PsychToolbox 2.53.
Another monitor is hooked to the built-in card of the Macintosh,
but all stimuli are presented on the Radeon 8500 (Screen 1).
Virtual memory is off. SCREEN Backgrounding is off.
% SCREENTest results, 26 Jan 2005: %%%%%%%%%%%%%%%%%%%%%%%%%%
*** ptime's PowerMac3,3/400, Mac OS 9.2.2
********************************
G4, 400 MHz, memory bus 100 MHz, 62.770 Mflop/s
Psychtoolbox 2.53, 12 August 2002, Matlab 5.2.1.1421
*** Screen 0
*************************************************************
ATI Radeon 7200, retail, PCI, aka "Radeon Mac Ed. (PCI)"
"ATY,RADEONp" (.Display_RADEON version 1.0f59) in slot SLOT-D
10 bit dacs. 1024x768 85 Hz. (56,60,65,67,70,72,75,76,85,90,100,120
Hz avail)
<...snip...>
*** Screen 1
*************************************************************
ATI Radeon 8500, port A
"ATY,R200i_A" (.Display_DualHead version 1.0f72) in slot SLOT-A
10 bit dacs. 1280x1024 85 Hz.
(56,60,65,67,70,72,75,76,85,90,100,120,150 Hz avail)
Prefs: cscGetClutBehavior, cscGetNextResolution,
SetClutDuplicates8Bits,
DipPriorityAfterSetClut, MinimumSetClutPriority 2, BlankingDuration
0.0030 s.
- - - - - - - - - - - - - - - - - - - - - - -
- -
pixel size 8 16 32 bits
pages 1 1 1
CopyWindow (ie CopyBits) 185 188 188 MB/s
CopyWindow (ie CopyBits) AGP 344 344 344 MB/s
CopyWindow (ie CopyBits) VRAM 1810 1801 1806 MB/s
SetClut suppresses ints. for 0.0 0.0 0.0 frames
LoadClut vs. GetClut? ( 8 bits) == == na
LoadClut vs. GetClut? (10 bits) == == na
<...snip...>
Any suggestions?
-- Alex
-------------------------------------------------------
Alexander A Petrov: apetrov (at) uci (dot) edu
Post-doctoral Researcher
Department of Cognitive Sciences
University of California, Irvine
http://www.socsci.uci.edu/~apetrov/
It is better to light one candle than to
curse the darkness. --- Confucius ---
-------------------------------------------------------