Mail Archives: djgpp/1998/10/26/05:19:21
Nicolas Blais writes:
> First of all, I'd like to know which of those takes longer to refresh?
> 800x600x15bit
> 640x480x32bit
> Second, how do you calculate how much memory it takes?
800x600x15 = 720000 bits = 900000 bytes
640x480x32 = 9830400 bits = 1228800 bytes
That isn't quite accurate because 15 bit pixels are actually padded
to a 16 bit alignment, making the real size be 800x600x16 = 960000
bytes. So, a 640x480x32 mode takes up 1.28 times as much memory as
an 800x600x16 one, and will therefore take 28% longer to refresh.
btw. could you please turn off HTML formatting in your email program?
It makes your messages very hard for many people to read...
Shawn Hargreaves.
- Raw text -