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

Investigate multiple RPCs being triggered instead of 1 #184

Open
TheYellowArchitect opened this issue Jan 15, 2024 · 1 comment
Open

Investigate multiple RPCs being triggered instead of 1 #184

TheYellowArchitect opened this issue Jan 15, 2024 · 1 comment

Comments

@TheYellowArchitect
Copy link
Contributor

TheYellowArchitect commented Jan 15, 2024

# Cache the synced clients, as the rpc call itself may arrive multiple times
# ( for some reason? )
var _synced_clients = {}

In the class network_time.gd is the above. How can I test this in order to find the root, and help in solving it?
Perhaps this problem doesn't persist in Godot 4.2

@elementbound
Copy link
Contributor

Confirming in Godot 4.2 helps indeed! Otherwise, I'd probably just try to step through the process with the debugger to see if there's anything fishy going on or if it's an engine quirk. IIRC at the time of writing I did not see any red flag with the code - which can be deceiving as I wrote all of it 🙂 - and it was not that much of a dealbreaker to start investigating a potential engine quirk.

Either way, I agree that this should not happen in an ideal case, so will look into it. If you happen to find anything, please keep me posted, thanks!

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