Stream/Draw distance or too many objects?
#5

Set the objects which are important such as ground, floor, walls to have higher stream distance, ofcourse based on the size and position. For a wide huge ground object (let's say a mountain, island, of a single object ofc) it would have larger stream distance than the smaller size (let's say interior items like furniture, decorations, or exterior items like grass, bushes), unless you are making a pathway for the player. New version of streamer plugin has "priority" parameter which you can use on those important objects. Draw distance shouldn't be matter and you can keep it on default value (it's for rendering) unless you noticed some in-game lags since your objects are too dense with full of small objects in one place. Object drawing/rendering performs better when the player is not in vehicle, sometimes the player cannot see the objects texture from the vehicle and they have to exit first and get in back.

Code:
native STREAMER_TAG_OBJECT CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
Additionally, If you also need to calculate the object model size to get its right priority, you can use this include as you said it's just going to be used when the gamemode loaded:
https://sampforum.blast.hk/showthread.php?tid=586040

Reducing the amount of object is also good choice to reduce the density, optimize the number of objects by using alternative object which has same shape with less amount, however using CreateObject wouldn't be good idea if you have alot dynamic objects. Also looking on the use if it's just going to be used temporarily then you could use CreatePlayerObject as alternative if you ran out of streamer options. But still it's good to keep these amount of objects as low as possible so streamer will work better.

If the dynamic objects are slow at loading, you have to freeze the player for few moments near the objects to let it being streamed-in, or very last option is to increase the plugin update rate (still it will also depend on the server & client connection and performance).

Sorry for bad english, i hope it helps.
Reply


Messages In This Thread
Stream/Draw distance or too many objects? - by Sime30 - 05.12.2016, 01:08
Re: Stream/Draw distance or too many objects? - by Dayrion - 05.12.2016, 06:23
Re: Stream/Draw distance or too many objects? - by Sime30 - 05.12.2016, 14:22
Re: Stream/Draw distance or too many objects? - by Logic_ - 05.12.2016, 14:42
Re: Stream/Draw distance or too many objects? - by RoboN1X - 05.12.2016, 15:08
Re: Stream/Draw distance or too many objects? - by Sime30 - 06.12.2016, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)