Pickle said:
Well Im very close to releasing a version of dosbox for the GP2X.
1. I have made a couple memory saving changes. I have found many of the crashes users experience are a result of being "out of memory". All games/programs tested seem to run. I havnt heard or tried anything that doesnt run.
2. I have profiled the code, seems to give the expected 20% increase in speed.
3. I have compiled in DJWillis SDL touchpad code (there is still work to do in this area)
The touchpad does work, just not ideal. Once we explore this some more the new version will be made public.
I can run many EGA/PC Sound games like duke nukum at 200 Mhz. I have played stunts on the lowest settings and it was playable to some degree. It seems in general some vga titles can run decently with no sound.
Looking forward to seeing it. (the code as I don't own a GP32)
for the Nokia N8x0 port there were some bugfixes done with regard to unaligned acces when dealing with the
vga emulation. I don't know if the GP2x would benefit from those as well.
From the psp port we recieved a patch which adds a banked tlb. This reduces the memory footprint of dosbox
as well. It might be an idea to look at that if you are short on memory.
Memory. Yes There are some points where you can decrease the size of certain tables. I don't know if there are really redundant memory allocations in the DOSBox code, but I will study the changes you have made.
You might want to lower the default samplerates of all sound devices to 11025.
the opl emulation is quite heavy for handhelds and is awful for any caching the system might have done.
Good luck,
Peter
(DOSBox Author)
The only game ive tried so far that didnt run right was wolf3d. The ingame graphics were garbage.
I did shrink the TLB table as suggested in the PORTING doc. We could try and move that to the upper 32 mb, but I dont see the benefit? The only negative was a possibility of protected mode games? Everything ive ran and the testers have ran has worked. If its newer protected mode games, would they run anyway with the current speed.
I also shrunk the drive/folder cache, didnt seem to effect anything. I did have the GUS removed, but just added it back in.
The TLB was the big one at a 15mb worth of saving memory. Ive allocated up to 10 mb in the dosbox.conf. I think 8 mb would be the max anyone really needs.
Qbix, another area where we might get some more performance is in the game resolution. The GP2X has a 320x240 res. As you know dosbox defaults to 640x400, we have our SDL scale that down to 320x240. So for games that 320x200, dosbox scales up and then the GP2X scales back down. Is there a good way to cut this out and just have dosbox scale at 320x200?