Skip to main content

script_runtime_set_max_operations

Function script_runtime_set_max_operations 

Source
pub fn script_runtime_set_max_operations(runtime: &mut ScriptRuntime, max: u64)
Expand description

Sets the rhai operation budget per script call. The default is conservative to bound an untrusted script; a trusted creative driver, where a script may draw thousands of shapes a frame, raises it. 0 removes the limit.