r/VoxelGameDev • • 16d ago

Media Voxel Engine update - Added Multiplayer

Hi guys!
An update on the voxel engine I am writing in odin.

  1. Just added support for multiplayer using ENet, it's all server authoratative so so the client just sends requests and the server checks if it is valid before allowing that. There is also client side prediction to prevent jittering.
  2. Added structure spawning, currently just a single shop you can go inside of. I am currently planning out a possible way of spawning villages. Possible with a set of handcrafted layouts that are loaded using json files ig is my current idea but let me know if you guys got better ideas!
25 Upvotes

2 comments sorted by

1

u/Desperate-Job-2995 16d ago

Hi!

Looks cool!
I want to ask you because I am doing also the voxel engine and thinking go go full Rust/Odin (currently now in pre-production stage). How does it performs in Odin? I am curious to compare the Rust and Odin voxel engines..

3

u/Similar_Place6762 15d ago

Hi!
Odin has pretty good performance, I get around 60 fps with around 900 mb of memory usage and 14 worker threads for chunk generation. I have hardly done any optimizations so it will probably give much better performance when done.