![]() |
|
#1
|
|||
|
|||
|
just curious to the method that oslib uses... ok so when you load an image into the mem when does oslib take it out? like would you ever run into a problem if you (hypothetically speaking) loaded too much... and if so is there a simple function which would take it out of the memory? thanks guys
__________________
PSP is an amazing little device... now it's up to us to utilize it You miss 100% of shots you never take - The Great One Wayne Gretzky |
|
#2
|
||||
|
||||
|
Hey,
OSLib doesn't do any sort of memory management in the way of unloading stuff. If you load more than the RAM can hold you'll freeze the PSP. Code:
oslDeleteSound(); Code:
oslDeleteImage(); Code:
oslLoadImage(a, blah blah); oslLoadImage(b, blah blah); oslLoadImage(c, blah blah); Code:
oslDeleteSound(c); oslDeleteSound(b); oslDeleteSound(a);
__________________
The PSP Programming and Development Mega Thread -Rock Station- PSN: Xsjado7 Quote:
|
|
#3
|
|||
|
|||
|
thanks blade punk
but just curious what would happen if you tried to take them out of memory in the wrong order? would it just remove something that you didn't want removed? in other words is there a consequence to doing this wrong?
__________________
PSP is an amazing little device... now it's up to us to utilize it You miss 100% of shots you never take - The Great One Wayne Gretzky |
|
#4
|
||||
|
||||
|
Freezes I think. Can't remember why. I think its mentioned in the OSLib doc
__________________
The PSP Programming and Development Mega Thread -Rock Station- PSN: Xsjado7 Quote:
|
|
#5
|
|||
|
|||
|
I think that only refers to when images, that were copied, are deleted before the copies.
|
|
#6
|
|||
|
|||
|
k thanks guys
__________________
PSP is an amazing little device... now it's up to us to utilize it You miss 100% of shots you never take - The Great One Wayne Gretzky |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|