DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
76 stars 13 forks source link

Buffer type converters #73

Closed Beider closed 4 years ago

Beider commented 4 years ago

Currently when you have a [MDReplicated] or MDList with a custom property the converter is resolved on the the fly whenever this node is created, the problem here is that the custom class converter uses reflection to resolve the internal members of the class which would be slow. In addition MDReplicatedMember and MDList duplicates the data converter code to figure out which converter to use.

Here is what I suggest we do,