Inside3D!
     

Checkig For Precached Models And Sounds

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Junrall



Joined: 21 Sep 2009
Posts: 136
Location: North West Oregon, USA

PostPosted: Mon Mar 01, 2010 7:36 pm    Post subject: Checkig For Precached Models And Sounds Reply with quote

Is there a way, in QC, to check if something is already precached?
If something is precached twice will Quake know not to precache the item twice or will it overwrite the first precache?
Are there negative effects to precaching something twice... like memory usage?
_________________
Good God! You shot my leg off!
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Mon Mar 01, 2010 8:35 pm    Post subject: Reply with quote

duplicate precaches are not a problem.
there is no standard way to see if something is already precached.
just precache it again.
note that precaches (normally) only work at map load time.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Tue Mar 02, 2010 12:22 am    Post subject: Reply with quote

Don't worry about duplicate precaches, Quake just ignores it.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group