MakeTextureTimingTest

>Psychtoolbox>PsychTests

MakeTextureTimingTest

Screen ‘MakeTexture’ both allocates memory to hold an OpenGL texture and
loads a MATLAB matrix into the OpenGL texture. TestMakeTextureTiming
times those two steps separately, reporting the fraction of time which
MakeTexture spends allocating memory.

On 1GHz G4, MakeTexture spends less than 3% of its time allocating memory.
Providing separate Screen subfuntions to allocate and fill textures would
gain little.

see also: PsychTests

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychTests/MakeTextureTimingTest.m