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 

Prob. wuth libpng and prx

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



Joined: 29 May 2005
Posts: 214

PostPosted: Thu Aug 03, 2006 4:22 am    Post subject: Prob. wuth libpng and prx Reply with quote

hello, i have some prob's with libpng in my module.
If i compile it as .elf, no problem i can load large png, but when i compile it as a module i can only load small png like 10ko.
Maybe someone have a solution to this ?
Sorry for my poor english.
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu Aug 03, 2006 4:33 am    Post subject: Reply with quote

Unless you specify otherwise, prx modules are given a smaller stack/heap space, whereas elfs are just given the whole chunk of memory that is available.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Thu Aug 03, 2006 4:35 am    Post subject: Reply with quote

Hum ok. I have tried to compile it with
Code:
PSP_HEAP_SIZE_KB(0);

but it dont work better.

I also noticed that when i load a 480x272 png, only 1mb of memory left, it dont seems to be normal ?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu Aug 03, 2006 4:41 am    Post subject: Reply with quote

Is zero really an appropriate heap size? ...
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Thu Aug 03, 2006 4:42 am    Post subject: Reply with quote

I thought 0 would mean no limit hehe be it dont seems:x
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