GUS - Godot Universal Serializer 2's icon

GUS - Godot Universal Serializer 2 v2.0.0 Tools 4.0 Community

Submitted by user Daylily; MIT; 2022-03-06

A Godot's universal serializer for size optimization.
Support all data types except Object, RID, Callable and Signal in Godot 4.x.

Feature:
Without losing type information. Need not type detection and forced typce conversion in cross end transfer´╝îjust like local parameter transfer.
Integer are variable length serialization.
The serialized data size is smaller than JSON text to utf8 and the native serialization method var2bytes().GUS is especially suitable for the serialization of structured small data transfer in multiplayer games.
GDExtension plugin, high performance.
You can run the EditorScript which named GUS_test.gd to view the contrast between GUS, Native, and JSON.

How to use:
Download release plugin, install and enable this plugin just like other plugin.
Modify properties of autoload which named GUS as you require.
Pass variable which without Object, OID, Callable, Signal into GUS.to_bytes() and get the serialized data, than send to network peer.
After the remote network peer obtains the serialized data, passe it into GUS.to_var() to get the same variable as before serialization.
Be careful:
The properties of autoload GUS between all network peers should keep the same.
Array and Dictionary should not contain Object, RID, Callable and Signal.
Currently unsupport Godot 4.x which compiled with typeof double real_t.
Currently just support platform windows.


Click View Files to see more benchmark results.


View files Download Submit an issue Recent Edits