MakeTextureTimingTest2([screenid][,width][,height][,channels][,nSamples][,preload]);
Test creation timing of a texture of specific 'width' x 'height' size with
'channels' color channels (1=Luminance, 2=Luminance+Alpha, 3=RGB,
4=RGBA).
All parameters are optional: Defaults are width x height = 1024 x 1024,
channels = 4 (RGBA), screenid = max id.
Performs 1000 sampling runs, shows average duration.
Each run creates a new texture via
Screen('
MakeTexture'), then preloads
it onto the graphics card to measure that aspect as well, then deletes
the texture again. This test will give you rather "worst case" or
upper-bound numbers on texture management time. In many cases, processing
of textures of similar size will be faster due to all kinds of internal
optimizations. Your mileage may vary (TM), but it provides a rough
impression at least.
see also:
PsychTests
Psychtoolbox/PsychTests/MakeTextureTimingTest2.m