Remove comment of _synced_clients#310
Closed
TheYellowArchitect wants to merge 1 commit intofoxssake:mainfrom
Closed
Remove comment of _synced_clients#310TheYellowArchitect wants to merge 1 commit intofoxssake:mainfrom
_synced_clients#310TheYellowArchitect wants to merge 1 commit intofoxssake:mainfrom
Conversation
The comment is misleading. There is no RPC re-sending anywhere in the code, nor is this variable used for checking re-sent RPCs.
_synced_clients_synced_clients
Contributor
|
Please tell me more about this PR. I've added the comment originally because the RPC method seemed to be called multiple times. This PR removes the comment and says nothing about any findings. |
Contributor
Author
|
I didn't find any RPC being re-sent in all my tests and PRs and debuggings. I didn't test specifically for this, but I am confident my loggers would have caught a duplicate RPC. Feel free to close this if you suspect duplicate RPCs still exist 👍 |
Contributor
|
Changed NetworkTime's @rpc("any_peer", "reliable", "call_remote")
func _submit_sync_success():
var peer_id = multiplayer.get_remote_sender_id()
if not _synced_clients.has(peer_id):
_synced_clients[peer_id] = true
after_client_sync.emit(multiplayer.get_remote_sender_id())
_logger.info("Peer %s is synced" % [peer_id])
else:
_logger.warning("Peer %s is synced again" % [peer_id])Resulting logs: Unfortunately the Fixes still welcome though! |
Contributor
Author
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Solves #184
The comment is misleading. There is no RPC re-sending anywhere in the code, nor is this variable used for checking re-sent RPCs.