What Data Type to Send
Hey guys, I've got a question I'm sure one of you guys can answer off the top of your head. Should I convert all of my variables (they are all doubles) to chars before I send my packet, then reconvert them back into doubles of the other side, or is this more trouble that it is worth. Thanks in advance.
My Current Project Angels 22 (4E5)
You cant do that anyway, you would lose accuracy. Just send doubles, or drop them down to floats.
ace
ace
See, I knew someone could answer that right away. Thanks ace.
My Current Project Angels 22 (4E5)
It depends on how much space you'd like to save, and how much accuracy you need. :)
In one of my previous projects, I converted my floats to shorts (and multiplied by 100 to save two decimal places).
In one of my previous projects, I converted my floats to shorts (and multiplied by 100 to save two decimal places).
--Gauntlets of Recursion (+3) - My game development journal.My Recent Projects: [Meteorites] [Gundown] [Magma Duel] [Admiral Overalls] [Membrane Massacre]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement