samp-incognito / samp-streamer-plugin

Streamer Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
233 stars 91 forks source link

Suggestion: Intelligent streaming #87

Closed FSAOskar closed 8 years ago

FSAOskar commented 8 years ago

How about adding a toggle able function for ColAndreas users to turn on/off intelligent streaming. By intelligent streaming I mean that the streamer could the the LOS (line of sight) when you are withing the streaming distance of an object. If the the LOS is fully blocked so you basically can't see anything of the object it shouldn't get created/streamed in.

Southclaws commented 8 years ago

This would probably not be worth it. Lookup times for LOS checks take a while, big servers have huge amounts of objects, it would tank hard.

FSAOskar commented 8 years ago

That's why I'm talking about a toggle able function so server owners aren't forced to use it. And maybe if the LOS check would use a higher tickrate then the the normal object streaming ? I guess you don't need to check the LOS all 40ms (or what ever the default streamer tickrate is) even if you are moving pretty fast.

Ryder17z commented 8 years ago

As it is now, it would consume too much resources if you tried. And as vehicles (hydra, Infernus, NRG, etc) may move at +200 km/h you would need to check LoS pretty often anyway.

On Sun, Oct 18, 2015, 17:07 FSAOskar notifications@github.com wrote:

That's why I'm talking about a toggle able function so server owners aren't forced to use it. And maybe if the LOS check would use a higher tickrate then the the normal object streaming ? I guess you don't need to check the LOS all 40ms (or what ever the default streamer tickrate is) even if you are moving pretty fast.

— Reply to this email directly or view it on GitHub https://github.com/samp-incognito/samp-streamer-plugin/issues/87#issuecomment-149023827 .

FSAOskar commented 8 years ago

Let's assume someone having a good/powerful server it could be quite useful in my opinion. Another idea beside checking the LOS could be checking the player's weather cause there are quite some weather id's which don't allow to look very far. Just stuff like that could make something like intelligent streaming.

ikkentim commented 8 years ago

There is no reason to do this:

Pros:

Cons: