forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

hints to gain maximum free memory

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
nobb1x



Joined: 20 Nov 2006
Posts: 2

PostPosted: Fri Mar 02, 2007 6:21 am    Post subject: hints to gain maximum free memory Reply with quote

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
View user's profile Send private message
execom_rt



Joined: 02 Mar 2007
Posts: 1

PostPosted: Fri Mar 02, 2007 7:42 am    Post subject: Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Mar 02, 2007 8:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group