> I'm pretty sure my posting said the exact opposite of botman's response.
>
> "Precacheing only allocates a name slot for model.  It doesn't force it to
> be in memory.  The HL engine demand loads model data only when needed."
>
> It rarely happens, but you can't count on the pointer being valid between
> subsequent calls to g_engfuncs.pfnGetModelPointer(), since the engine can
> move or throw away model data if something else needs the memory.  In
> theory, each call to g_engfuncs.pfnGetModelPointer() could force a cache
> flush and any pointers it returned earlier will no longer be valid.

Ah, I didn't realize that the cache contained a LRU list and items that
hadn't been used recently would be flushed from the cache when a new item
requests to be cached.  I had always assumed once something is cached it's
there until the level gets unloaded.  I learn something new every day!
Thanks Ken!  :)

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to