-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat/optimize the commands calls zappy gui #246
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick question before approving
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, just wait before the @AxelF44 's pr about sending ppo when need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
With the help of @mathieurobert1, i setup the a clock for each player last
ppo
command call.The
ppo
command is used to update the player's position.Now, if the last ppo call last from more that 50 ticks, the Gui is sending
ppo
for this player to the server.This method avoid sending
ppo
to the server for each tick for nothing.