[bf1942] ramdisk

ScratchMonkey ScratchMonkey at MatureAsskickers.net
Fri Jun 10 14:07:18 EDT 2005


--On Friday, June 10, 2005 10:14 AM -0700 James Gurney 
<james at globalmegacorp.org> wrote:

> Also there's not much disk io during game play, so the only time it would
> make a difference is during map loading.. but if it's already cached in
> ram, the difference would (probably) be negligible.

Linux is very aggressive about caching, so you really don't need a ramdisk, 
just some way to get the next map into the cache ahead of time. If there 
was a way to know what the next map was, you could just run a slow process 
that reads all pages in the file that completes before the current map 
ends. Perhaps something like "nice 1 dd if=mapfile of=/dev/null".





More information about the Bf1942 mailing list