Is there any way to unload textures?

For questions about using Classic.

Post » Fri Dec 28, 2012 8:47 am

Im loading my images at runtime, so the unload layout textures function is not an option. This is important because I'm using a lot of big images(1080p), so it fills the memory pretty quickly. Any suggestion?
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Fri Dec 28, 2012 12:18 pm

"unload layout textures" still works for images loaded at runtime, but the texture has to have no objects using it. If you loaded the images into a tiledbg instance, you need to destroy that instance before the image can be unloaded. If using sprites to store the loaded textures, then you will have to destroy all the instances of the sprite before it can be unloaded, or just load a small image into the frame you wish to remove.
B
79
S
24
G
54
Posts: 4,755
Reputation: 40,773

Post » Sat Dec 29, 2012 1:43 am

I see, thank you sir.
B
10
S
6
G
3
Posts: 127
Reputation: 2,481


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests