I notice that when using ClientsideModel, when updating the model’s position every frame (in a HUDPaint hook) I get a 1-frame lag which is bad since I want it to follow the player’s eye vector smoothly.
This didn’t happen when using render.Model.
local ent = ClientsideModel( model_path, RENDERGROUP_BOTH )
hook.Add( "HUDPaint", "DrawModel", function() ent:SetPos( EyeVector()*64 )+EyePos() ent:SetAngles( EyeAngles() ) end)
The above is what I’m doing.
According to gmodwiki.net, render.Model is “ideal for rendering something for one frame - like generating a spawnicon, but if you want to render it every frame cache a ClientsideModel”. Why is this, and what does “Cache a ClientsideModel” actually mean?