Page 1 of 1

Freeing the memory of a SkyBox?

Posted: Sun Aug 18, 2013 6:49 pm
by Samuel
I'm not sure how you free up the memory of the SkyBox() images when you no longer need them.
Do you just use the FreeImage() on each individual image? If so then how do you get the handle of each individual image? Since, you never assign
handles to them or the Skybox().

Re: Freeing the memory of a SkyBox?

Posted: Sun Aug 18, 2013 7:16 pm
by DK_PETER
Samuel wrote:I'm not sure how you free up the memory of the SkyBox() images when you no longer need them.
Do you just use the FreeImage() on each individual image? If so then how do you get the handle of each individual image? Since, you never assign
handles to them or the Skybox().
Hi

Simple:
SkyBox("")

Best regards
Peter

Re: Freeing the memory of a SkyBox?

Posted: Sun Aug 18, 2013 7:29 pm
by Samuel
Hello DK_PETER,

Thank you for the quick reply. Using SkyBox("") does remove the images from the screen, but they are still in memory.
You can notice it a lot more with larger images. I need a way to free up that memory. Which is why I asked about the FreeImage() command.
Thanks though and if you have any other ideas let me know.

Re: Freeing the memory of a SkyBox?

Posted: Sun Aug 18, 2013 7:40 pm
by DK_PETER
Samuel wrote:Hello DK_PETER,

Thank you for the quick reply. Using SkyBox("") does remove the images from the screen, but they are still in memory.
You can notice it a lot more with larger images. I need a way to free up that memory. Which is why I asked about the FreeImage() command.
Thanks though and if you have any other ideas let me know.
You can't. You can however construct your own skybox using planes
and thereby have total control.

Best regards
Peter

Re: Freeing the memory of a SkyBox?

Posted: Sun Aug 18, 2013 7:49 pm
by Samuel
Thank you DK_PETER,

That's what I've been doing lately as my workaround. If this is the only way then that's OK. Not to hard for me to manage a couple of planes. I just thought it would be nice if there was a way. Since, pretty much every thing else with PureBasic has a way to free up memory.
Thanks again.