rslashplace2 / rslashplace2.github.io

r/place 2
GNU Lesser General Public License v3.0
16 stars 26 forks source link

Implement CHANGES style pixel placer packet #300

Closed Zekiah-A closed 1 week ago

Zekiah-A commented 1 month ago

See #301

The pixel placers data is quite big uncompressed (since user ids are uint32s, so the data size is canvas width canvas height 4). So the current implementation allows the client to just request the pixel placer IDs around the current cursor position when it needs it (so basically when you hover over a pixel for a few ms it will start loading them in). I am also considering implementing a packet like CHANGES, where pixel placer IDs since the last canvas backup are pushed to the git repo, and then the server sends all the pixel placer IDs since the backup in a compressed buffer

TODO:

Zekiah-A commented 1 week ago

Current solution works well and is satisfactory. Closing