Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Goober5000 on January 06, 2003, 01:32:28 am

Title: paging in/out textures?
Post by: Goober5000 on January 06, 2003, 01:32:28 am
I'm in the middle of implementing the mod for additional squad logos, but I'm currently a little confused.  I see all this stuff about textures being paged in at the beginning of the mission, but none about them being paged out.  Should I call bm_unload or bm_release at the end of the mission for my ship logos?

The ship_level_init function says that models are paged out between each mission, but I can't find any place where their textures are unloaded.  Since I have to use bm_load_duplicate for the squad logos, I'm worried about the unused bitmaps piling up from mission to mission and eventually requiring you to restart the game.

On the other hand, I looked into the shield rendering routines and saw a cryptic comment that seemed to say that shield effects didn't need to be paged out, because the bitmap manager did it automatically.  But I haven't been able to substantiate that on my own.

Any advice?
Title: paging in/out textures?
Post by: Goober5000 on January 06, 2003, 01:55:16 am
Never mind.  This should be handled by the model code (if and when it even is handled) so I shouldn't have to worry specially about it. :)
Title: paging in/out textures?
Post by: Bobboau on January 06, 2003, 04:16:22 am
what are you doing with squad logos?
Title: paging in/out textures?
Post by: kasperl on January 06, 2003, 09:47:34 am
this (http://www.hard-light.net/forums/index.php/topic,12545.0.html)