~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychTests/DrawingSpeedTest.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
tavg = telapsed;
210
210
tperrect = tavg / n;
211
211
 
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);
214
214
 
215
215
%Done.
216
216
Screen('CloseAll');
218
218
if any(gpudur)
219
219
    gpudur = 1000 * gpudur;
220
220
    plot(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);
222
223
end
223
224
 
224
225
return;