Animation frame from file...Problem with memory.

For questions about using Classic.

Post » Sun Dec 19, 2010 7:25 am

Hello, I'm french (excuse my English so) I have a concern, I am creating a game and I see the RAM from my computer without going through the debug construct by ctrl alt delete to open the process window during my computer. I discovered that my game by 1 GB of RAM and more than that number increased with time very slowly.
I find the source of my problem was a plasma effect and the many images of my character animation.

So I tried to solve this problem as follows: load every millisecond, the images of the movie but from a folder on my computer this time.

Therefore: my ram is about 100 MB, but the problem is that like every millisecond I load a texture, it will list in the RAM, I seek to load the texture, then to "unload". But I have not seen such a function in construction.

I calculate that after a day of play with 30 characters like this, would my RAM to 8 GB theory. About 66 KB every 20 seconds are added to my RAM.

The question is: how to unload a texture of an object ? For application consumes a lot of RAM because of this over time.
B
2
G
2
Posts: 31
Reputation: 712

Post » Sun Dec 19, 2010 8:51 am

Not sure whats going on with the plasma object, but "load every millisecond" sounds highly suspicious.
Perhaps your loading the same frame, rather than skipping to a new one.

In any case using a huge animation is ill advised.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests