WIP checkpoint: Client-side position sync + prediction/reconciliation

This commit is contained in:
2026-08-21 01:18:34 +00:00
parent 140db9df91
commit bae326e14c
3 changed files with 22 additions and 16 deletions
+1
View File
@@ -196,6 +196,7 @@ func _handle_snapshot(snapshot_data: Dictionary) -> void:
# RPC payloads can arrive as String or int depending on the transport
# encoding, so check both rather than assuming.
var my_state: Variant = players.get(my_id, players.get(str(my_id), null))
print("DEBUG _handle_snapshot my_id=", my_id, " my_state=", my_state, " buffer_size=", _prediction_buffer.size(), " net.position=", position)
if my_state == null or not (my_state is Dictionary):
return