How would i go about making it so that entities within a certain area or not in the players current sight are not drawn. I am not sure how to set it up so they are not drawn. Any help would be greatly appreciated!
Edit: The DarkRP server that i am developing for is having a lot of troubles with lag. I want it so that if an entity is no in the player's sight, it will not be drawn. The most efficient way of do this is ent:SetNoDraw(). I just dont know where to go from there.
By default, Source Engine already has frustum culling and occlusion culling turned on.
frustum culling is the act of culling polygons or entire objects that are not in the current view frustum.
Meaning that objects not in your sight (view frustum) does not even render.
(although this check does have addition and subtraction operations to determine if an object is within sight. Not as bad as rendering off-screen objects though)
occlusion culling is the same as above, except that it doesn't render when an object is blocked by another.
Sorry, you need to Log In to post a reply to this thread.