[bf1942] ramdisk

"Einar S. Idsø" esi at itk.ntnu.no
Fri Jun 10 14:23:29 EDT 2005

Yes, that's exactly what I thought when I saw this thread. And with the
nice Python-interface to BF2, this should be quite simple to accomplish.

Just run a check in the main Python script to see if the time until
round end is less than, say, 15 seconds, or if the number of ticks is so
and so low. If either check turns out tru, start to nicely read the map
into ram, for instance by piping to /dev/null like you suggest.



ScratchMonkey wrote:
> 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