Commit Graph

3 Commits

Author SHA1 Message Date
hypercross 96ba037432 feat: add component discovery source generator
Introduce an incremental source generator that automatically discovers
component types used with the World API. This allows the
WorldSerializer to perform serialization and deserialization without
relying on reflection, improving performance and stability.
2026-07-18 23:41:28 +08:00
hypercross 339e850e10 perf: optimize iteration and command enqueuing
- Optimize Select2 and Select3 iterators to drive from the smallest
  sparse set to minimize probes.
- Use a constrained generic in CommandQueue.Enqueue to avoid boxing
  struct commands at the call site.
- Ensure singleton infrastructure is initialized during world
  deserialization if the singleton entity is loaded.
- Change EnsureSingleton to internal.
2026-07-18 21:32:29 +08:00
hypercross 9aa2a71257 feat: add WorldSerializer for saving and loading world state 2026-07-18 21:07:05 +08:00