feat(vm): add deterministic gameplay math and domain coverage gates
Intrepid/Prometeu/Runtime/pipeline/pr-master There was a failure building this commit
Intrepid/Prometeu/Runtime/pipeline/pr-master There was a failure building this commit
This commit is contained in:
@@ -171,3 +171,15 @@ Budget admission remains between instructions. Zero executes nothing. A positive
|
||||
## Typed Callable Costs
|
||||
|
||||
Charge each admitted attempt once, including trap: MAKE_CLOSURE 8+C (declared capture-slot sum), CALL_CLOSURE 6, GET_CAPTURE 2+W (selected complete-group width), CALL_TRAIT 6. Direct CALL/RET retain 5/4. No extra callback budget, partial-instruction pause or GC-cycle redesign. Zero budget executes nothing; positive budget may admit an instruction that overshoots. Root-return GC does not grant cycles, advance frames or invoke guest cleanup.
|
||||
|
||||
## Mathematical intrinsic attempts
|
||||
|
||||
The [numeric contract](02d-gameplay-math-and-numeric-semantics.md) publishes
|
||||
fixed total call costs: min/max/abs/conversions 2, clamp and rounding 4,
|
||||
vec2.dot 10, sqrt 16, sin/cos 32, vec2.length 40, atan2 48.
|
||||
Charge known mathematical attempts before checks and scratch reservations,
|
||||
including failure, exactly once without an extra generic INTRINSIC cycle.
|
||||
Zero budget begins no attempt; positive budget admits the complete operation
|
||||
and retains the existing overshoot rule. Argument-producing bytecode costs
|
||||
remain additional. Input/color and other intrinsic/opcode costs and accounting
|
||||
remain unchanged. CPU timings never change guest-visible cycle weights.
|
||||
|
||||
Reference in New Issue
Block a user