perf: harden runtime for weaker hardware

This commit is contained in:
Rijad Zuzo
2026-08-12 10:02:45 +02:00
parent cd29da95e0
commit 34428d836a
47 changed files with 2164 additions and 243 deletions
+11 -1
View File
@@ -74,6 +74,7 @@ func _run() -> void:
var report := {
"schema_version": SimulationScalingBenchmark.SCHEMA_VERSION,
"simulation_state_schema_version": SimulationStateRecord.SCHEMA_VERSION,
"captured_utc": Time.get_datetime_string_from_system(true) + "Z",
"engine_version": String(Engine.get_version_info().get("string", "unknown")),
"platform": OS.get_name(),
@@ -83,7 +84,8 @@ func _run() -> void:
"workload_id": String(SimulationScalingBenchmark.WORKLOAD_ID),
"workload":
(
"All NPCs receive full per-tick needs/task updates and ordinary action decisions; "
"All NPCs receive full per-tick needs/task updates, ordinary action decisions, "
+ "and one matching authoritative combatant record; "
+ "travel resolves through the deterministic immediate-arrival headless convention."
),
"timed_phases": ["simulation_tick", "headless_arrival_completion"],
@@ -130,10 +132,18 @@ func _summarize_samples(case_id: String, samples: Array[Dictionary]) -> Dictiona
"arrivals_processed",
"warmup_arrivals",
"npc_updates",
"npc_combatant_count",
"npc_combatant_coverage_valid",
"start_tick",
"end_tick",
]
for sample in samples:
if (
not bool(sample.get("npc_combatant_coverage_valid", false))
or int(sample.get("npc_combatant_count", -1)) != int(sample.get("population", -2))
):
push_error("Scaling benchmark case %s lost NPC combatant coverage" % case_id)
return {}
if String(sample["final_checksum"]) != checksum:
push_error("Scaling benchmark case %s diverged across checksums" % case_id)
return {}