ashoulson / RailgunNet

A Client/Server Network State-Synchronization Layer for Games
Other
154 stars 21 forks source link

Overflow handling/free list for entity Ids #10

Closed ashoulson closed 8 years ago

ashoulson commented 8 years ago

Probably need to do this by keeping a free list. When an entity removal event goes out and all clients have acked it, it's safe to retire that Id.

What about clients that leave before the remove event is acked?

ashoulson commented 8 years ago

Depends on #8

ashoulson commented 8 years ago

No longer relevant now that we can elastic-encode uints. Maximum tick and Entity ID will be 4,294,967,295, at the cost of 5 bytes. Not expecting to ever hit that. That's 2.5 years at 50Hz.