[hlcoders] PreCaching Models - what exactly does it do?

2011-09-14 Thread Jed
I've been wondering about model pre-caching lately and what exactly it achieves. I'm noticing that the potential number of player models for our mod is growing exponentially and along with that there are various play model attachments which are needed. I could just put them all into an array and

Re: [hlcoders] PreCaching Models - what exactly does it do?

2011-09-14 Thread Garry Newman
I stopped models precaching in GMod - and you can get up to a second loading delay when spawning a model - especially ragdolls. So I think it's safe to assume it loads the whole thing, model, physics, materials, textures. garry On Wed, Sep 14, 2011 at 2:57 PM, Jed j...@wunderboy.org wrote:

Re: [hlcoders] PreCaching Models - what exactly does it do?

2011-09-14 Thread AndreaZzZ
If there were levels of detail, I think things would be a lot easier. 2011/9/14 Garry Newman garrynew...@gmail.com I stopped models precaching in GMod - and you can get up to a second loading delay when spawning a model - especially ragdolls. So I think it's safe to assume it loads the whole

Re: [hlcoders] PreCaching Models - what exactly does it do?

2011-09-14 Thread Ryan Sheffer
Hey Jed Model precaching is very important considering the model first exists on the hard drive, and then it needs to be broken up once loaded. The model is loaded (FROM THE HARD DRIVE), all the required data is laid out in an easy to retrieve manner in memory, the video card memory probably

Re: [hlcoders] PreCaching Models - what exactly does it do?

2011-09-14 Thread Jed
Well thanks for the input. As I said I wasn't *100%* sure what the PreCache function was actually caching. For example, in other software I use in my job PreCaching only fetches the most expensive bit of data and the rest if read from disk. In this case I wasn't sure if it was doing something