210
210
tperrect = tavg / n;
212
fprintf('Rendered 1000 frames, each with %i rectangles of size %i x %i.\n', n, sizeX,sizeY);
213
fprintf('Total time %6.6f seconds. Time per rectangle %6.6f msecs.\n', telapsed, tperrect);
212
fprintf('Rendered 1000 frames, each with %i primitives of size %i x %i.\n', n, sizeX,sizeY);
213
fprintf('Total cpu time %6.6f seconds. Time per primitive %6.6f msecs.\n', telapsed, tperrect);
216
216
Screen('CloseAll');
219
219
gpudur = 1000 * gpudur;
221
fprintf('Mean drawtime on GPU is %f msecs, stddev = %f msecs.\n', mean(gpudur), std(gpudur));
221
title('Drawtime in msecs per frame');
222
fprintf('Mean drawtime on GPU is %f msecs per frame, stddev = %f msecs, median %f msecs, time per primitive %6.6f msecs.\n', mean(gpudur), std(gpudur), median(gpudur), mean(gpudur)/n);