I've used Message Pack in the past with good results. I think it does everything you're looking for. Difference being it has no formal schema declaration or code generation step so there are tradeoffs vs something like flatbuffers
this post was submitted on 30 Jun 2023
4 points (100.0% liked)
GameDev
2706 readers
8 users here now
A community about game development.
Rules:
- Adhere to the general lemmy.blahaj.zone rules (#1 being no homophobia, transphobia, racism or other exclusionary content)
- Self-promotion is fine as long as it's not spammy - share your progress, insights, techniques and mishaps! If you recently posted, update the previous post instead of filling the frontpage with your project
- Hide NSFW/NSFL content behind a clear warning, for example: [NSFW Nudity]
More rules might follow if they become necessary; general rule is don't be a pain in the butt. Have fun! ♥
founded 1 year ago
MODERATORS
Thanks, I'll check it out!
Flatbuffers! It’s like protocol buffers, but much leaner. It was actually specifically designed for games, and meets all your requirements.
The only challenge is that, like protocol buffers, it requires an extra compilation step and involves code generation. Depending on your build system, that could be a challenge.
Ooo nice! I've read a bit about it but couldn't tell the difference from protobuf. Thanks for the recommendation!