-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typed binary snapshot compression / delta compression #2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds ability to encode / decode arrays of entities
Adds ability to encode / decode entire messages
Increase size of bitmask to UInt16 Adds more tests
Increases default buffer size Adds support for undefined enum types Adds more action types
Use auto-id for snapshot id, not date time Adds `name` property `type` property is no longer sent on each request Increases bbb default buffer size Increases bbb bitmask buffer size Adds support for Boolean type Switch to UTF8String Adds stubs for enabling WebGPU Moves border creation to inside listening block
Updates edge server to use new int IDs Removes `Buffer.from` for browser env
Adds method to clear all state on deltaCompression Adds more tests for deltaCompression
Updates tests
Ensures deltaCompression passes through non-compressed properties Adds guards and tests for deltaCompression init states
Adds more tests for optional fields / missing fields
Adds delta compression and float encoding to more values Owner is now `UInt16` instead of string Updates entity auto-id such that server is always id 0
Removes flattened structure
Updates logger syntax
Adds game message schema Truncate BitBuffer before returning it
Improves performance of encode / decode Updates message schema to use one level + state array Refactors Client / Server for new message schema
Replaces supreme json compression with protobuf Use `arraybuffer` as default web socket data type
Adds configurable `MIN_BLOCK_SIZE` Disables auto-binding of event classes by default
Simplifies entity removal process with `destroyed` flag Bullets are now destroyed if hit Block
Adds velocity to deltaCompression pipeline Removes un-needed graphics calls Refactors Float2Int for performance Bullet plugin is not responsible for creating graphics
Adds deltaCompression to edge server Adds protobuf and msgpack to edge server Ensure msgpack still works in regular server Using msgpack by default for edge server ( see code comment ) Adds `Game.tick` counter Use `MIN_BLOCK_SIZE` in Block config
Ensure id lookup works in offline mode
Removes conditional branching logic for float encoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the use of
protobuf.js
for snapshot compression as well as enabling delta compression by default.snapshot compression pipeline is entirely configurable, defaulting to most optimally compressed messages.
Notes
protojs
code due to eval security issue fix pendingowner
andid
are both nowuint32
instead of string