perf(saves): delete SerializedTypes.db write path and runtime type tracking

The idx v4 type table supersedes the global type queue: workers no longer
enqueue every Write(Type) into a shared ConcurrentQueue during the freeze,
WriteFiles no longer drains and dedupes millions of entries, and the db file
is no longer produced. Loading old saves still reads SerializedTypes.db via
the legacy v2/v3 path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kamron Batman 2026-07-16 12:18:26 -07:00
parent 50d02cffec
commit 3b11a376f0
No known key found for this signature in database
GPG key ID: 7D81DF26D9A5D94A
10 changed files with 26 additions and 114 deletions

View file

@ -214,7 +214,7 @@ public class SerializationThreadWorker
{
ReleaseWriteLogs();
var writer = new BufferWriter(_heap, true, World.SerializedTypes);
var writer = new BufferWriter(_heap, true);
var entities = 0L;
while (_chunkSource.TryTake(out var chunk))
@ -234,13 +234,12 @@ public class SerializationThreadWorker
var worker = (SerializationThreadWorker)obj;
var chunkSource = worker._chunkSource;
var serializedTypes = World.SerializedTypes;
while (worker._startEvent.WaitOne())
{
worker.ReleaseWriteLogs();
var writer = new BufferWriter(worker._heap, true, serializedTypes);
var writer = new BufferWriter(worker._heap, true);
var entities = 0L;
var spinner = new SpinWait();