]> git.lizzy.rs Git - dragonfireclient.git/commit
Cache serialized mapblocks during sending
authorsfan5 <sfan5@live.de>
Thu, 5 May 2022 20:03:49 +0000 (22:03 +0200)
committersfan5 <sfan5@live.de>
Sun, 8 May 2022 17:12:10 +0000 (19:12 +0200)
commit1fa4f58080b068920d7611291709377072d0cd00
treef036bfc98dfb8cbf96dc860ced9ae6e4b4dac33d
parent7fff9da71d2de352e0afea7482fc2e26534a51a4
Cache serialized mapblocks during sending

This reduces the
(absolute) time spent in Server::SendBlocks() from 700ms to 300ms
(relative) share of MapBlock::serialize() from 80% to 60%
in a test setup with 10 players and many block changes
src/server.cpp
src/server.h