Am I double loading my images?

BlitzMax Forums/BlitzMax Programming/Am I double loading my images?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey guys,

I've been working on my game for some time now, and I've noticed that it uses up huge amounts of RAM when running. On my hard drive, I have about 14 MB of PNG's. Now I realize that they uncompress when they are loaded, but I was wondering if the excessive amounts of RAM my game uses may have to do with the way I'm loading those PNG's and setting up my in-game animations.

Basically, the setup goes like this:

Global char_idle_strip:Timage=LoadAnimImage("images/charidlestrip.png",265,371,0,3)
Global charIdleAnimation:BAnimation = New BAnimation 
charIdleAnimation.InitValues(char_idle_strip, 4, "0,1,2,1", 200)
charAnimation.SetCycle(1) 


The parameters to charIdleAnimation.InitValues are (an_image, number_of_animation_frames, a_list_of_frames, time_in_ms_between_frames)

There is a field in the BAnimation type which is set equal to an_image. When this happens, is there a duplicate in memory of the an_image file?