Why did they do this:
Sys_SetPhysicalWorkMemory( 192 << 20, 1024 << 20 ); //Min = 201,326,592 Max = 1,073,741,824
Instead of this:
Sys_SetPhysicalWorkMemory( 201326592, 1073741824 );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A neat property is that shifting a value
<< 10is the same as multiplying it by 1024 (1 KiB), and<< 20is 1024*1024, (1 MiB).Shifting by successive powers of 10 yields all of our standard units of computer storage:
1 << 10= 1 KiB (Kibibyte)1 << 20= 1 MiB (Mebibyte)1 << 30= 1 GiB (Gibibyte)So that function is expressing its arguments to
Sys_SetPhysicalWorkMemory(int minBytes, int maxBytes)as 192 MB (min) and 1024 MB (max).