by Dan East » Jun 9, 2001 @ 5:18pm
Pocket Quake should honor the -heapsize parameter. Because of the volatile fluctuation of memory on a Windows CE device PQ tries to allocate memory as follows:<br><br>Start with all the available RAM or the value specified by -heapsize if defined.<br>Try to allocate that amount of memory.<br>If that fails, reduce the amount by 500k and try again, etc.<br>If we drop below the minimum required RAM then we fail and exit.<br><br>So by default PQ will try to use all available RAM, down to Quake's hardcoded minimum acceptable RAM limit, which is 5.57 MB. You would need more than that free to run PQ (roughly another meg), because there are other pieces of memory dynamically allocated, plus Quake's stack, which is pretty large.<br>So in other words, the only real reason to use -heapsize with PQ would be to use less than all available RAM. Regular Quake tries to allocate only the minimum needed RAM, or what the user specifies with -heapsize. If that allocation fails then it won't start.<br>Also note that because Windows CE may automatically adjust the storage / program memory ratio, after PQ takes it's huge chunk of currently available program RAM, Windows CE may allocate more.<br><br>Dan East