Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Wanderer on May 08, 2008, 02:44:14 am
-
I have some questions about graphics files and FS.. I have not earlier coded well anything graphics related on language at the level of C/C++ so i have no real knowledge how this should be handled... But as i was browsing the code to check how 'stuff is made' i noticed that almost all hud bitmaps are paged in. When I wrote the coloring and bitmap thing with the radar images didn't really do this. Still in my tests the radar bitmaps worked quite nicely after initial setbacks. Also on a brief glance it seemed like scripted bitmaps would rely on only bm_load and unload stuff. So what is the catch? Especially with FS that is.
I have so far asked about this from people i have come across in the IRC and also from Karajorma and Goober but haven't got any definitive answers yet. I started looking at this when Backslash asked about this but i misunderstood his question.
-
So... No takers?
-
i get that too, did all the coders take a vacation or something?
-
My understanding is that _load just loads the bitmap's info, page_in loads the actual content. They're still automatically paged in on use, but if they first appear during a mission they will slow things down (if they're big, or a large number have to be loaded in at once.)
-
Ok.. Thanks from the information... I take i could add a page in function for those and page in (and out) the ship images alongside rest of the radar stuff. Though given the small size of the images used in radar thingye that probably shouldn't cause problems in any case.
-
i get that too, did all the coders take a vacation or something?
Well there's only been one SVN commit in over a week, so it would seem so. Probably graduating/partying/spring cleaning/etc.