Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | liss22 |
Hi,
Theseday, I use godot as network server (fast build for demo server)
Question about optimization
Situation
- Game will send data in realtime (means send at least 30 packets per second)
(optional) 2. Data always be ( JSON-stringify )
Have some form for kind of contents, but will be JSON in demo play
I want to optimize sending/receiving amount.
and wonder,
Is sending ‘Number like string’ as Number is better than as String?
Sending “1234567890” as string VS 1234567890 as int
In godot,
Int is ‘Signed 64-bit integer type’
String may kind of ‘Object’
which is cheap?
*Optional situation can be delete if it cause optimization more