Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease particles while there are too many nearby players to prevent network issue. #1368

Open
afoxxvi opened this issue Aug 25, 2024 · 0 comments

Comments

@afoxxvi
Copy link

afoxxvi commented Aug 25, 2024

Maybe it should be an EffectLib issue.

I have spells with large particle effects, however if there are more than 8 players nearby, severe network lag will occur, I guess it was caused by sending too many particle packets to every clients.

So I wonder if this can help address it: Limit max particle amount to 5 players(can be configured), and if nearby players are less than 5, everyone will see all particles normally, otherwise, for example, when there're 8 players nearby, only 500%(100% for 1 player limit) particles will be sent to all players in total, which means each player can only see 62.5% particles, and the other 37.5% are just canceled.

I think this solution can lower the network pressure and deal less impact on visual effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant