Server Render Distance Based on Current Players
#4
So I tried it out, slightly modifying my original design where instead of basing the view distance of the number of players, I based it off the number returned by cWorld:GetGeneratorQueueLength(). Basically I had it so that the cWorld:SetMaxViewDistance() was dropped by 1 repeatedly until the number of chunks in the queue was less than 20. This worked as confirmed by cWorld:GetMaxViewDistance() which returned a 1 after repeated drops, however on the client side it was very clear that the render distance hadn't actually changed to 1 and the chunks in the queue continued to climb rapidly as they moved (indicating a view distance more in line with 10). Does cWorld:SetMaxViewDistance() clamp the cClientHandle:SetViewDistance() in real time or only when the client connects?
Reply
Thanks given by:


Messages In This Thread
RE: Server Render Distance Based on Current Players - by N8-Ball - 12-10-2019, 12:41 PM



Users browsing this thread: 1 Guest(s)