DoodlesEpic / DoodlesEpic/MultiplayerPicross

chore: presence-based game synchronization

Open
#2 0 comments 0 reactions 1 assignee Assigned to @DoodlesEpic View on GitHub
enhancement
Dominant language
Svelte
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Current game synchronization is done purely through Supabase Realtime Postgres, this has the issue of introducing latency and creating race conditions in situations where more than one player checks a square at the same time.
https://supabase.com/docs/guides/realtime/extensions/postgres-changes

Supabase Presence API could be a good alternative to sync state between clients. With Postgres still being the final source of truth for the game state. Possibly the server would be responsible to persist state to the database and the clients would only be allowed to write data to the presence channel.
https://supabase.com/docs/guides/realtime/extensions/presence

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.