Precache models

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

skornedemon
Posts: 154
Joined: Mon Aug 02, 2010 11:10 am

Precache models

Post by skornedemon »

Currently for the Mapinfo -> map definition, there are: PrecacheSounds, PrecacheTextures, PrecacheClasses.
I'd like to ask for a PrecacheModels. Currently the only way to do this is to spawn everything on map load in front of the player(or within "sight", they can be behind an intangible texture). If you delete them too fast,they dont fully cache if it's a slower pc. PrecacheClasses does nothing for model loading.

Thanks!
User avatar
Enjay
 
 
Posts: 26963
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Precache models

Post by Enjay »

This would be nice to have. It's one of the few things that can have a noticeable "hit" in performance on my system.

e.g. I was working on a map where the player eventually comes upon a railway carriage. The model was simple-ish but the skin was (necessarily) 1024x1024 and that was enough to have the game stall momentarily as the carriage was coming into view. Like skorndemon, I solved it by hiding a copy of the model near the player start spot.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Precache models

Post by Graf Zahl »

The skin is a texture, you should have been able to precache that separately.
User avatar
Enjay
 
 
Posts: 26963
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Precache models

Post by Enjay »

Even when it's not in the textures folder? I did not know that. Thanks. :)
Post Reply

Return to “Feature Suggestions [GZDoom]”