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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user