ProjectObsidian icon indicating copy to clipboard operation
ProjectObsidian copied to clipboard

Netcode Improvement / Rewrite

Open EdwardJXLi opened this issue 2 years ago • 3 comments
trafficstars

This is a top level thread for all discussions about the new experimental_netcode branch.

EdwardJXLi avatar Aug 02 '23 06:08 EdwardJXLi

Map compression on connect seem to cause this with the right map: SERVER FROZEN! Last response was 13.48 seconds ago.

rdebath avatar Aug 04 '23 15:08 rdebath

Did a little digging, looks like its because the map compression takes a whole lot of CPU during map loads. I added c4e21ea to hopefully speed up compression, but ill look into maybe spinning it into a new thread to decrease how much it blocks.

EdwardJXLi avatar Aug 05 '23 06:08 EdwardJXLi

c4e21ea seems to address a lot of common cases, but during worst-case scenerio (a map of completely random blocks), its still pretty slow.

EdwardJXLi avatar Aug 05 '23 06:08 EdwardJXLi