Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

A new standardised protocol? Goto page Previous 1, 2, 3

| Inside3d Forums Forum Index -> Engine Programming

View previous topic :: View next topic
Author | Message
--- | ---
Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Tue Oct 14, 2008 10:14 am Post subject: |

Or you can revamp the protocol to be bit-based rather than byte based, and send coords with 10bit precision... But its probably best to add proper deltas between frames and just use a convienient coord size. Mostly its just entities that are spammed, wasted space elsewhere really doesn't matter too much. But two players running around spam each other with origin/velocity updates constantly.
Darkplaces5+ uses floats for WriteCoord (and thus all normal coords), with it choosing between 16bit and floats for entity updates. This is a nice aproach.
Deltas also reduce the data sent. It would still send less data even if it were fully 32bit...
_________________
What's a signature?

Back to top |

metlslime Joined: 05 Feb 2008 Posts: 177 |

Posted: Tue Oct 14, 2008 10:28 am Post subject: |

oh, and the idea of sending all coords as relative to the client origin (except for the client origin itself) occurred to me too, and this is actually probably a good idea, except for the amount of code that it affects. We would then assume the client doesn't care about anything more than 4096 units away.

Back to top |

r00k Joined: 13 Nov 2004 Posts: 483 |

Posted: Wed Oct 15, 2008 4:47 am Post subject: |

LordHavoc wrote:
... sometime - after IronGrip: Warlords ....

You mean this ?
http://igwarlord.isotx.com/index.php
damn i hit the BUY button sevral times and it didnt work

Back to top |

metlslime Joined: 05 Feb 2008 Posts: 177 |

Posted: Thu Oct 16, 2008 2:54 am Post subject: |

metlslime wrote:
oh, and the idea of sending all coords as relative to the client origin (except for the client origin itself) occurred to me too, and this is actually probably a good idea, except for the amount of code that it affects. We would then assume the client doesn't care about anything more than 4096 units away.

Oh yeah, I remember now that the flaw with this idea is that even in a map like Marcher that fits inside the standard 8192 box, you would actually lose visibility of far away entities in that main outdoor space, since it is larger than 4096 across. So this would actually lose capabilities compared to the standard protocol.

Back to top |

metlslime Joined: 05 Feb 2008 Posts: 177 |

Posted: Sat Oct 25, 2008 9:39 am Post subject: |

another crazy idea: generate and send the client the bounding box for the entire level's playable space, then send all coordinates so that so that 0-65535 are mapped so the range defined by the bounding box. so as the level exceeds the normal 8192^3 cube, it would gradually lose precision.

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Engine Programming | All times are GMT Goto page Previous 1, 2, 3
Page 3 of 3

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group