heroiclabs / nakama-defold

Defold client for Nakama server.
https://heroiclabs.com
Apache License 2.0
74 stars 12 forks source link

Use built-in native JSON encoder/decoder #63

Closed aglitchman closed 1 year ago

aglitchman commented 1 year ago

Nakama uses rxi's json implementation written in pure Lua. And it is quite slow - if you send/receive lots of messages per frame, the most of the CPU time is wasted in JSON encoding/decoding.

Defold has had a fast built-in JSON encoder/decoder since version 1.3.7 - https://defold.com/ref/json/

It would be great if Nakama Defold Client upgraded to the new JSON API.