e48d4bbe88
- Introduced a new benchmark save script to create a stress test scenario with extreme values for simulation performance. - Added a full UI benchmark script to measure frame rates and performance metrics during UI interactions. - Implemented tests for coarse generations to ensure population transitions are handled correctly. - Created tests for extra parameters to validate the loading and application of configuration settings. - Developed simulation optimization tests to verify the efficiency of population drift and rounding mechanisms. - Added split optimization tests to ensure accurate allocation and rounding behavior in population management. - Included startup parameter tests to confirm the correct initialization of global parameters before scene readiness. - Enhanced the audit rounding ledger to compare selective and full rounding results for consistency.
13 lines
473 B
GDScript
13 lines
473 B
GDScript
extends "res://world/owniverse/object_ledger.gd"
|
|
var checks: int = 0
|
|
var failures: int = 0
|
|
|
|
func round_object_allocations(target: Dictionary, affected: Variant = null) -> void:
|
|
var reference: Dictionary = target.duplicate(true)
|
|
super.round_object_allocations(reference)
|
|
super.round_object_allocations(target, affected)
|
|
checks += 1
|
|
if not E.eq(target, reference):
|
|
failures += 1
|
|
push_error("Selective rounding differs from full rounding")
|