Run deterministic world stages on the bounded Void executor

This commit is contained in:
faumaray committed 2026-12-02 21:27:32 +03:00
1 parent 8d2870a6f8
commit 68f91a236a
10 files changed
+400 -81

No files matched your search

+3 -2
View File
@@ -609,7 +609,8 @@ void World::write_save(std::ostream& stream) const {
WorldSaveCodec::body(archive, *this, save_version);
}
std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t workers, ExecutionMode mode) {
std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t workers, ExecutionMode mode,
WorkerPoolOptions worker_options) {
SaveReader archive(stream);
for (char letter : signature) {
char actual = 0;
@@ -626,7 +627,7 @@ std::unique_ptr<World> World::read_save(std::istream& stream, std::size_t worker
archive.field(seed);
archive.field(width);
archive.field(height);
auto world = std::make_unique<World>(seed, width, height, workers, mode);
auto world = std::make_unique<World>(seed, width, height, workers, mode, std::move(worker_options));
WorldSaveCodec::body(archive, *world, version);
archive.finish();
if (version < 5) {