Netcode patches & optimizations (#1082)