1
$\begingroup$

What is the memory consumption for a true color frame buffer (with double buffering) on an XGA display? ("XGA" = 1024 x 768 pixels) How can I calculate this?

$\endgroup$
  • 1
    $\begingroup$ Could you show what you have tried, and explain what you currently understand? $\endgroup$ – trichoplax Oct 23 '16 at 22:03
4
$\begingroup$

True color is 8 bits per color channel, so 3 bytes per pixel. 1024x768 is 785,408 pixels. At 3 bytes per pixel that is 2,356,224 bytes. Since it's double buffered we double that number to 4,712,448 bytes which is about 4.5MB.

$\endgroup$
  • $\begingroup$ I'm not sure there are that many true 24bit displays. I suspect many will probably pad each pixel out to 4 bytes, thus becoming 3145728, i.e. 3MB. $\endgroup$ – Simon F Oct 24 '16 at 7:19
  • 1
    $\begingroup$ XGA is a specific standard from a while back, when they didn't have the memory to pad to 32bit. Check it out here: en.wikipedia.org/wiki/… $\endgroup$ – Alan Wolfe Oct 24 '16 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.