RE: determine the amout of video ram

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	-----Original Message-----
	From:	Mads V. Pedersen [SMTP:rhl-list@xxxxxxxxxxx]
	Sent:	Monday, December 15, 2003 3:55 PM
	To:	fedora-list@xxxxxxxxxx
	Subject:	Re: determine the amout of video ram

	Your formula is calculating the amount of memory in Mega _bits_ not Mega 
	_Bytes_. You have to divide the number by 8. So you get

	video RAM needed (in MB) = (width x height x number-of-bits) / 8388608

Actually, it would be easier to express the formula as:

	video RAM needed (in MB)  = (width x height x (number-of-bits / 8)) / 1048576

and, this would more acurately express what is actually happening, because it's the number of bits / 8, to make bytes, that is significant. Putting it in the constant at the end is confusing.

----
Robert P. Nix                            internet: nix.robert@xxxxxxxx
Mayo Clinic                                  phone: 507-284-0844
RO-CE-8-857                                page: 507-270-1182
200 First St. SW 
Rochester, MN 55905      
----   "Codito, Ergo Sum" 
"In theory, theory and practice are the same,
 but in practice, theory and practice are different."







[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux