Add new tests and implement frame budget management

- Introduced `civilization_benchmark.gd` and `legacy_quantity_math.gd` for benchmarking and legacy quantity calculations.
- Created `test_dynamic_math.gd`, `test_frame_evolution.gd`, and `test_sparse_batches.gd` to validate mathematical operations and frame evolution logic.
- Implemented `frame_budget.gd` to manage cooperative work on the main thread, ensuring no partially calculated state is published.
- Added UID files for all new scripts to maintain unique identifiers.
This commit is contained in:
Kirill
2026-10-01 23:43:34 +03:00
parent f51eea6c0f
commit c4e7302567
53 changed files with 1313 additions and 397 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
extends Control
class_name OwniverseItem
const E = preload("res://world/owniverse/math/exact.gd")
signal item_activated(item)
@@ -20,7 +21,7 @@ var item_type = ""
func set_label(value) -> void:
var text: String = Global.format_number(value)
var text: String = E.scientific(value, 5) if E.gt(E.absolute(value), 1000000000) else (E.grouped(value, 0, false) if E.ne(value, 0) else "")
if description.text != text:
description.text = text
#description.text = str(value)