Hi, In my blog post, when I said "Authors' preferred use case", I meant the respective authors of the various serialization frameworks -- NOT the author of the blog post (me). That is to say, the author of Flatbuffers had gaming in mind when he designed it.
I think Cap'n Proto would be a great fit for games. However, I'm not a game developer myself, and it's possible I don't recognize what's important there. Some people have told me that it's extremely important for games that optional fields don't take space on the wire -- if you agree with that, then Flatbuffers may be a better choice for that reason? But, this claim seems bizarre to me. Why would games rely so much on optional field compression? The suspicion I get is that games tend to use poorly-organized data structures with excessive optional fields, rather than designing a proper information hierarchy. I suspect that you could find an alternative design that works well with Cap'n Proto and results in cleaner code, too. But this is just my intuition; I haven't looked closely at the problem. -Kenton On Mon, Mar 11, 2019 at 1:09 PM The Cheaterman <[email protected]> wrote: > Another bit of extra info that I forgot to include - I'd be using the RPC > system for that, I like the idea of giving players ownership of the > entities they are allowed to edit/control by simply sending the handle to > the remote version! > > > Le lundi 11 mars 2019 20:58:07 UTC+1, The Cheaterman a écrit : >> >> Hi Kenton, long time no see! :-) >> >> I'm trying to build a very basic entity synchronization system over the >> wire, basically videogame netcode, out of Capnp. >> >> The only info I found when I search "Capnp for games" online is a post >> where you compare Capnp, Protobuf, Flatbuffers and SBE. You seem to >> recommend Flatbuffers for games there - can I get some insights into your >> rationale? >> >> As you might expect from me being here, I'd really like to use Capnp for >> this, because I really like it. Do you see any particular reason why I >> wouldn't want to use Capnp for that kind of purpose? >> >> Thanks in advance! >> > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/capnproto. > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
