Objects streaming problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Objects streaming problem (
/showthread.php?tid=566649)
Objects streaming problem -
f0cus - 07.03.2015
Hey. I got problem with dynamic objects streaming.
I set stream distance to 1200.0 for each object, I'm using newest Incognito Streamer include&plugin.
What's the problem ?
Re: Objects streaming problem -
RoboN1X - 07.03.2015
You need to understand what is "Stream Distance" and "Draw Distance" first,
"Stream Distance" is the distance for the object to be "streamed" or created for the player
"Draw Distance" is the distance for the object to be "drawed" or rendered for the player
Stream Distance should be higher than or equal to Draw Distance, because there is no point having object rendered first before it's created.
SA-MP allows the player's client to have object created for about 1000 objects, Streamer just helps you to create the objects when the player is near. So having more than 1000 objects, example 2000 objects with streamer in same range to the players wont let you to see all 2000 objects, but only 1000 closest object to the player.
Having 1200m draw distance on all objects means giving the same "priority" for all object to be created near the player.
I suggest you set the stream distance with lower value for small object, and higher value for large object, so in a far distance, small object is not visible but larger object is more 'prioritized' to be visible for the player. You need to count how big the value tho, depending on the object size and object count in the place. for instance, the small fence in front of you should use 250m stream distance, while the big wall use 500m.