Quantum 3 3.1.0

Classes | Public Types | Public Attributes | List of all members
Quantum.QuantumRunnerRollbackPolicy Class Reference

A ruleset that controls how the simulator spends its per-update budget between verified ticks, prediction rollbacks and predicted ticks. Attach to a scene object; applies itself to QuantumRunner.Default. Use this script to optimize worst case rollback performance in online mode. Verify results by running the graph profiler. More...

Inheritance diagram for Quantum.QuantumRunnerRollbackPolicy:
Quantum.QuantumMonoBehaviour

Classes

struct  SimulatorContextRuleData
 Simulator context rule data. More...
 

Public Types

enum  PolicyMode
 Pre-defined rule sets. More...
 

Public Attributes

PolicyMode Mode
 Selected policy mode. More...
 
SimulatorContextRuleData Settings = new SimulatorContextRuleData { VerifiedPerUpdateOffset = 2, MaximumRollbackAge = 6 }
 Simulator context rules settings. More...
 

Detailed Description

A ruleset that controls how the simulator spends its per-update budget between verified ticks, prediction rollbacks and predicted ticks. Attach to a scene object; applies itself to QuantumRunner.Default. Use this script to optimize worst case rollback performance in online mode. Verify results by running the graph profiler.

Member Enumeration Documentation

◆ PolicyMode

Pre-defined rule sets.

Enumerator
Balanced 

Balanced between performance and prediction depth.

Accurate 

Updates the prediction more frequently.

Performance 

Best performance by doing rollbacks less often.

Custom 

Customize the values.

Member Data Documentation

◆ Mode

PolicyMode Quantum.QuantumRunnerRollbackPolicy.Mode

Selected policy mode.

◆ Settings

SimulatorContextRuleData Quantum.QuantumRunnerRollbackPolicy.Settings = new SimulatorContextRuleData { VerifiedPerUpdateOffset = 2, MaximumRollbackAge = 6 }

Simulator context rules settings.