Raox2 / sunrust-issues

A place for bugs and the like.
2 stars 0 forks source link

[ZS] Most models are not precached #23

Closed ghost closed 11 months ago

ghost commented 6 years ago

Since loading isn't an async process, it causes hitches/micro freeze in the game's rendering thread. In zs, this happens for everything that uses a model.

zs does have a precache function, but it doesn't cover everything the gamemode uses.

I've seen that TTT precaches weapons view and world models, and wish to see precaching in zs expanded to cover everything the gamemode uses.

developer 2 shows the following:

Client

Loading: models/weapons/c_arms_citizen.mdl Loading models/weapons/c_arms_citizen.mdl Loading virtual model for weapons/c_arms_citizen.mdl Loading: models/weapons/w_snip_scout.mdl Loading models/weapons/w_snip_scout.mdl Loading: models/weapons/w_supershorty.mdl Loading models/weapons/w_supershorty.mdl Loading: models/weapons/w_pist_p228.mdl Loading models/weapons/w_pist_p228.mdl Loading: models/weapons/w_rif_famas.mdl Loading models/weapons/w_rif_famas.mdl Loading: models/weapons/cstrike/c_pist_p228.mdl Loading models/weapons/cstrike/c_pist_p228.mdl Loading: models/weapons/v_supershorty/v_supershorty.mdl Loading models/weapons/v_supershorty/v_supershorty.mdl Loading: models/weapons/cstrike/c_snip_scout.mdl Loading models/weapons/cstrike/c_snip_scout.mdl Loading: models/weapons/cstrike/c_rif_famas.mdl Loading models/weapons/cstrike/c_rif_famas.mdl

Server server

Everytime a level changes, this usually starts the loading process all over again.

Raox2 commented 6 years ago

It's a pretty monumental task since it would have to be, pretty much all manual.

ritzbits commented 6 years ago

Raox2 [sunrust-zs:master] 1 new commit b429d62 Quickly run over weapon models and precache those. - Raox2

If not resolved : re-open

Raox2 commented 6 years ago

Not resolved, there's a lot to do.