| View previous topic :: View next topic |
| Author |
Message |
nobb1x
Joined: 20 Nov 2006 Posts: 2
|
Posted: Fri Mar 02, 2007 6:21 am Post subject: hints to gain maximum free memory |
|
|
hi, sorry for the nobbish question but i'm still learning...
i'm working on a port of mame4all for the psp,actually for my enjoy only, the exe as in all mame versions is very huge (~8.5Mb) and fill a lot of memory,so most of the bigger roms can't work(8Mbit+), i'm not totally sure why they can't work but i think they fill all the memory before the end of loading,small roms works without problems.
i'm on 3.10oe, are there some tricks to close all the vsh or any other memory eating process while the emulator runs? i'm not disturbed if i need to reset the psp on exiting.
i've tried a search before writing but the only useful thing i've found is a post about more 4mb ram usable with 1.5 kernel, still this apply to 3.10oe? |
|
| Back to top |
|
 |
execom_rt
Joined: 02 Mar 2007 Posts: 1
|
Posted: Fri Mar 02, 2007 7:42 am Post subject: |
|
|
in pspsuspend.h, you have sceKernelVolatileMemLock that gives you 4MB extra RAM (that get invalidated if you put in sleep mode)
Alas, I couldn't make it work : I have a link error and don't know where the symbol is exported (-lpspsuspend ?).
If someone have an idea how to get it link with the PSPSDK ? (using DevKitPSP R9).
Cheers; |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Fri Mar 02, 2007 8:34 am Post subject: |
|
|
| Tbh you are going about it the wrong way, you shouldn't be looking to "steal" more ram but recode mame to use less ;) The PSP has a general purpose module system, you could build the core mame code into your main executable and then make each driver a separate module. Would reduce code size massively, but hey each to their own :) |
|
| Back to top |
|
 |
|