Jump to content

  • Log In with Google      Sign In   
  • Create Account

The speed of glDrawPixels


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Kjell Andersson   Members   -  Reputation: 411

Like
Likes
Like

Posted 25 September 2001 - 08:09 PM

Have anyone done any timing of the glDrawPixels function? How fast/slow is it for say a 640*480*32bit + 32bit depthbuffer transfer from main memory?

Sponsor:

#2 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 26 September 2001 - 11:27 AM

on my card its very slow (vanta) i hear its a bit quicker on geforces+

glDrawPixels: LUMINANCE -- UNSIGNED_BYTE rate 0.661 Mpixels/sec
glDrawPixels: LUMINANCE -- UNSIGNED_SHORT rate 0.636 Mpixels/sec
glDrawPixels: LUMINANCE -- UNSIGNED_INT rate 0.641 Mpixels/sec
glDrawPixels: LUMINANCE -- FLOAT rate 0.631 Mpixels/sec
glDrawPixels: ALPHA -- UNSIGNED_BYTE rate 0.667 Mpixels/sec
glDrawPixels: ALPHA -- UNSIGNED_SHORT rate 0.635 Mpixels/sec
glDrawPixels: ALPHA -- UNSIGNED_INT rate 0.636 Mpixels/sec
glDrawPixels: ALPHA -- FLOAT rate 0.629 Mpixels/sec
glDrawPixels: RED -- UNSIGNED_BYTE rate 0.667 Mpixels/sec
glDrawPixels: RED -- UNSIGNED_SHORT rate 0.633 Mpixels/sec
glDrawPixels: RED -- UNSIGNED_INT rate 0.638 Mpixels/sec
glDrawPixels: RED -- FLOAT rate 0.627 Mpixels/sec
glDrawPixels: RGB -- UNSIGNED_BYTE rate 0.676 Mpixels/sec
glDrawPixels: BGR -- UNSIGNED_BYTE rate 0.625 Mpixels/sec
glDrawPixels: RGBA -- UNSIGNED_BYTE rate 0.657 Mpixels/sec
glDrawPixels: BGRA -- UNSIGNED_BYTE rate 0.618 Mpixels/sec
glDrawPixels: RGB -- UNSIGNED_SHORT_5_6_5 rate 0.595 Mpixels/sec
glDrawPixels: BGR -- UNSIGNED_SHORT_5_6_5 rate 313698.039 Mpixels/sec
glDrawPixels: RGB -- UNSIGNED_SHORT_5_6_5_REV rate 0.598 Mpixels/sec
glDrawPixels: BGR -- UNSIGNED_SHORT_5_6_5_REV rate 312805.584 Mpixels/sec
glDrawPixels: RGBA -- UNSIGNED_INT_8_8_8_8 rate 0.572 Mpixels/sec
glDrawPixels: BGRA -- UNSIGNED_INT_8_8_8_8 rate 0.563 Mpixels/sec
glDrawPixels: RGBA -- UNSIGNED_INT_8_8_8_8_REV rate 0.571 Mpixels/sec
glDrawPixels: BGRA -- UNSIGNED_INT_8_8_8_8_REV rate 0.563 Mpixels/sec

ignore the 2 obvious invalid data ones
drawpixels is slow it aint optimized with any method though with a geforce i think a couple of methods are,
FYI
readpixels is about 30x quicker than drawpixels
copypixels about 250x quicker than drawpixels

#3 Kjell Andersson   Members   -  Reputation: 411

Like
Likes
Like

Posted 26 September 2001 - 07:34 PM

Thank you! This was precisely the information I was looking for.
Did you use any test-program that I can download to get those timings or did you write one yourself?

#4 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 27 September 2001 - 10:26 AM

my own program sorry i dont have a site to upload it at present
heres readpixel performance for a comparrison

glReadPixels: LUMINANCE -- UNSIGNED_BYTE rate 3.708 Mpixels/sec
glReadPixels: LUMINANCE -- UNSIGNED_SHORT rate 3.548 Mpixels/sec
glReadPixels: LUMINANCE -- UNSIGNED_INT rate 2.366 Mpixels/sec
glReadPixels: LUMINANCE -- FLOAT rate 3.738 Mpixels/sec
glReadPixels: ALPHA -- UNSIGNED_BYTE rate 21.468 Mpixels/sec
glReadPixels: ALPHA -- UNSIGNED_SHORT rate 16.836 Mpixels/sec
glReadPixels: ALPHA -- UNSIGNED_INT rate 10.873 Mpixels/sec
glReadPixels: ALPHA -- FLOAT rate 4.104 Mpixels/sec
glReadPixels: RED -- UNSIGNED_BYTE rate 14.438 Mpixels/sec
glReadPixels: RED -- UNSIGNED_SHORT rate 16.257 Mpixels/sec
glReadPixels: RED -- UNSIGNED_INT rate 10.741 Mpixels/sec
glReadPixels: RED -- FLOAT rate 4.108 Mpixels/sec
glReadPixels: RGB -- UNSIGNED_BYTE rate 8.770 Mpixels/sec
glReadPixels: BGR -- UNSIGNED_BYTE rate 7.352 Mpixels/sec
glReadPixels: RGBA -- UNSIGNED_BYTE rate 8.503 Mpixels/sec
glReadPixels: BGRA -- UNSIGNED_BYTE rate 7.352 Mpixels/sec
glReadPixels: RGB -- FLOAT rate 3.297 Mpixels/sec
glReadPixels: BGR -- FLOAT rate 2.651 Mpixels/sec
glReadPixels: RGB -- UNSIGNED_SHORT_5_6_5 rate 17.449 Mpixels/sec
glReadPixels: BGR -- UNSIGNED_SHORT_5_6_5 rate 336653.897 Mpixels/sec
glReadPixels: RGB -- UNSIGNED_SHORT_5_6_5_REV rate 16.416 Mpixels/sec
glReadPixels: BGR -- UNSIGNED_SHORT_5_6_5_REV rate 338937.000 Mpixels/sec
glReadPixels: RGBA -- UNSIGNED_INT_8_8_8_8 rate 7.158 Mpixels/sec
glReadPixels: BGRA -- UNSIGNED_INT_8_8_8_8 rate 7.158 Mpixels/sec
glReadPixels: RGBA -- UNSIGNED_INT_8_8_8_8_REV rate 8.461 Mpixels/sec
glReadPixels: BGRA -- UNSIGNED_INT_8_8_8_8_REV rate 7.219 Mpixels/sec




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS