• Render Distance/Entity Distance?
    3 replies, posted
Hello, so I'm looking at running a server which will have around twenty or more NPC's being spawned around the map, however this would cause lag. What I'm wondering if it possible is whether or not you can make a render distance for NPC's, or possibly make it so that if you don't see the NPC then it doesn't exist on your screen/game until you look in its direction? Is something like this possible?
Source Engine already does this for you, as I know. For example, if you entity isn't in FOV then Draw function will be stopped
This can help you: Draw Distance
You will only receive updates for entities in your PVS. Entities will only be drawn if their render bounds (entity model + any attachments or child entities) are in your view fulcrum (your screen). NPC lag comes primarily from scheduling serverside and maintaining activities and layers clientside.
Sorry, you need to Log In to post a reply to this thread.