Skip to content

Add "Multiplayer Drawing" Example#21

Open
Jei-sKappa wants to merge 6 commits intoMattiaPispisa:mainfrom
Jei-sKappa:whiteboard_flutter_example
Open

Add "Multiplayer Drawing" Example#21
Jei-sKappa wants to merge 6 commits intoMattiaPispisa:mainfrom
Jei-sKappa:whiteboard_flutter_example

Conversation

@Jei-sKappa
Copy link
Copy Markdown

First of all, thank you for the amazing work on this package! 🥳
This PR adds a "Multiplayer Drawing" example.

Key consideration:

When running the example, you'll notice that the number of offline writes increases rapidly as you move the pointer and draw.
From what I understand (unless I’m missing something 😅), this may be due to the lack of a concept like "awareness" (as implemented in Yjs), which would help manage presence/state without generating CRDT changes for every pointer move.

I'd love to hear your thoughts on this. Thanks again!

@MattiaPispisa
Copy link
Copy Markdown
Owner

Thanks for the compliments and for adding another example!

At the moment, there isn’t yet an “awareness”-like concept similar to what Yjs offers, but it’s definitely something that needs to be integrated.
This concept doesn’t directly relate to the data being collaboratively edited, so it shouldn’t be saved as a Change. Instead, it should act more like a “plugin” that attaches to the document.

Right now, I’m working on creating the sync package, which is a key building block for providing a plug-and-play system to manage CRDT data. This will also lay the groundwork for integrating awareness.

@MattiaPispisa MattiaPispisa added enhancement New feature or request example Example application pkg:crdt_lf This issue is related to the crdt_lf package p:1 High priority issues labels Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request example Example application p:1 High priority issues pkg:crdt_lf This issue is related to the crdt_lf package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants