Noita-Together / noita-together

Play alone together
MIT License
49 stars 15 forks source link

[WIP - do not merge] Changes for new NT lobby server #98

Closed myndzi closed 10 months ago

myndzi commented 11 months ago

Some small changes to the electron app were required for compatibility with the leaner proto messages sent by protobuf-es (specifically, protobuf-es generates compliant protobufs that elide the zero value, but protobufjs decodes these as undefined instead of the zero value).

Additionally, some code was added to send only the most recent frame across the internet, and to round the values to be less granular + only send updates when these rounded values have changed.