pub enum EngineHint {
Cap {
agent: AgentId,
max_ms: f32,
},
Prioritize {
agent: AgentId,
weight: f32,
},
}Expand description
A developer/editor hint that biases GORNA arbitration without changing game
semantics — the “adapt the HOW, not the WHAT” control surface, on the same
axis as AdaptationMode. Hints are advisory: a death-spiral safety stop
and a Manual pin both still win over them. Sent to the DCC over the hint
channel; the DCC folds them per agent (see AgentHints) and feeds the
accumulated state into each arbitration round.
Variants§
Cap
Cap an agent’s per-frame time budget: GORNA will not issue a strategy
whose estimated cost exceeds max_ms, clamping toward cheaper
strategies. Re-send with a large max_ms to lift a previous cap.
Fields
Prioritize
Bias an agent’s negotiation priority weight (higher = more budget share when the fit upgrades agents). Overrides the default per-agent priority.
Implementations§
Trait Implementations§
Source§impl Clone for EngineHint
impl Clone for EngineHint
Source§fn clone(&self) -> EngineHint
fn clone(&self) -> EngineHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineHint
impl Debug for EngineHint
Source§impl PartialEq for EngineHint
impl PartialEq for EngineHint
Source§fn eq(&self, other: &EngineHint) -> bool
fn eq(&self, other: &EngineHint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EngineHint
impl StructuralPartialEq for EngineHint
Auto Trait Implementations§
impl Freeze for EngineHint
impl RefUnwindSafe for EngineHint
impl Send for EngineHint
impl Sync for EngineHint
impl Unpin for EngineHint
impl UnsafeUnpin for EngineHint
impl UnwindSafe for EngineHint
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more