Prob. wuth libpng and prx

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Prob. wuth libpng and prx

Post by Cpasjuste »

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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

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
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Post by Cpasjuste »

Hum ok. I have tried to compile it with

Code: Select all

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 ?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

Is zero really an appropriate heap size? ...
Shoot Pixels Not People!
Makeshift Development
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Post by Cpasjuste »

I thought 0 would mean no limit hehe be it dont seems:x
Post Reply