by ezelkow1 on Mon Jul 13, 2009 7:30 pm
Thats one thing I noticed when messing around with the original virtualboy source vs. the one for gp2x. The original has no provisions for using on a 32meg system which screws over any large roms since there is not enough memory. It seems as though the gp2x port has taken this into consideration as when running that on the dingoo i never see the error about out of memory. Now I dont know if this needs to be addressed in the kernel or not. Personally I think swap is definitely not the way to go since it is a flash disk, either the app needs to be re-written to dynamically load what it needs from disk, or the kernel needs to handle it, but I dont think a normal swap/vmem setup is really what is needed. I believe what really should be done is that any emulators that deal with large roms should have the disk space just mmapped into the applications memory space, so it just treats the file as a chunk of memory and the kernel handles the dynamic loading as necessary.
This has obviously been dealt with in the original emulators since many of the neogeo/cps2 roms are larger than 32meg and would require working around this, and I doubt they use a swap on the flash itself.