Author Topic: Loading vs paging in  (Read 1909 times)

0 Members and 1 Guest are viewing this topic.

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Loading vs paging in
Quote
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.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Loading vs paging in
So... No takers?
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Loading vs paging in
i get that too, did all the coders take a vacation or something?
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Loading vs paging in
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.)
-C

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Loading vs paging in
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.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Loading vs paging in
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.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays