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

Position Sync takes too much bandwidth #41

Open
TheYellowArchitect opened this issue Aug 12, 2022 · 0 comments
Open

Position Sync takes too much bandwidth #41

TheYellowArchitect opened this issue Aug 12, 2022 · 0 comments
Labels
low priority Not important or to be focused netcoding Anything related to networking or online multiplayer performance Anything related to optimization or FPS

Comments

@TheYellowArchitect
Copy link
Owner

TheYellowArchitect commented Aug 12, 2022

On a debug build, press RightShift + F10...
Every timePerSnapshot (50 milliseconds), the host sends the position to client (Vector2)

This floods the network with useless snapshots, e.g. when warrior stays idle.
Since the same code (NetworkPositionInterpolationController) is extended for Monsters, each monster floods the network, even if its doing absolutely nothing, and you have gone afk!
It is disgusting, honestly. For those of you who dont know netcoding, its like checking some flag every frame, instead of having a callback/trigger.

tl;dr: A refactoring of Network(Enemy)PositionInterpolationController is required.
Maybe I can fix jittering on sudden ping increase as well.

The benefits of this are that low-bandwidth players (rural areas) can play the game without lag, and that you can download movies/games while playing, instead of Double Damnation leeching your entire bandwidth.

@TheYellowArchitect TheYellowArchitect added netcoding Anything related to networking or online multiplayer low priority Not important or to be focused performance Anything related to optimization or FPS labels Aug 12, 2022
@TheYellowArchitect TheYellowArchitect changed the title Interpolation takes too much bandwidth Position Sync takes too much bandwidth Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Not important or to be focused netcoding Anything related to networking or online multiplayer performance Anything related to optimization or FPS
Projects
None yet
Development

No branches or pull requests

1 participant