Bruce
Active member
Hello guys,
I am trying to code the Assist Select Screen on top of Char Select Screen.
Right now I only have 3 pictures that I need to show during the Assist Selection Menu.
Something in the OpenBor log has bothered me, so I need to make sure I am understanding abut the
loadsprite function properly.
I only loaded 3 pictures, but the log says I loaded 81 times.
Is this meant 81 or 3 of these from the 3 pictures would stay in the memory?
I remember reading somewhere on this forum that it does not matter how many times the pictures being loaded,
The engine would keep track of the path and would get rid of the duplicated ones.
I know I can free them with the free() function, but it is tricky, especially on the char selection screen.
The pictures are small in size, so it is not bigger deal, unless the engine actually keep all of the these 81+ in the memory!
Can someone please give me some advice on this?
Thank you very much
I am trying to code the Assist Select Screen on top of Char Select Screen.
Right now I only have 3 pictures that I need to show during the Assist Selection Menu.
Something in the OpenBor log has bothered me, so I need to make sure I am understanding abut the
loadsprite function properly.
I only loaded 3 pictures, but the log says I loaded 81 times.
Is this meant 81 or 3 of these from the 3 pictures would stay in the memory?
I remember reading somewhere on this forum that it does not matter how many times the pictures being loaded,
The engine would keep track of the path and would get rid of the duplicated ones.
I know I can free them with the free() function, but it is tricky, especially on the char selection screen.
The pictures are small in size, so it is not bigger deal, unless the engine actually keep all of the these 81+ in the memory!
Can someone please give me some advice on this?
Thank you very much
Code:
Warning: 81 script variants are not freed, dumping...
openbor_loadsprite
openbor_loadsprite
openbor_loadsprite
openbor_loadsprite
openbor_loadsprite
openbor_loadsprite
openbor_loadsprite
...............
...............