From 5b9d6036bfec0b20fe92731a77a4470b7c1cf015 Mon Sep 17 00:00:00 2001 From: chexit Date: Wed, 28 Oct 2026 23:08:21 +0300 Subject: [PATCH] Mods: more fuel per tick and per event (AirDef plans raids) Co-Authored-By: Claude Opus 5.5 --- crates/horizon-mods/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-mods/src/runtime.rs b/crates/horizon-mods/src/runtime.rs index 01000dfeb..a551b7376 100644 --- a/crates/horizon-mods/src/runtime.rs +++ b/crates/horizon-mods/src/runtime.rs @@ -108,9 +108,9 @@ const MEMORY: usize = 64 << 20; /// Fuel (about one unit per WebAssembly instruction) per call: a bound on /// runaway loops, far above the hooks' time budgets. const FUEL_INIT: u64 = 2_000_000_000; -const FUEL_TICK: u64 = 50_000_000; +const FUEL_TICK: u64 = 300_000_000; const FUEL_FRAME: u64 = 10_000_000; -const FUEL_EVENT: u64 = 100_000_000; +const FUEL_EVENT: u64 = 1_000_000_000; /// Blocks a mod may set per `world.set-blocks` call. pub const BLOCKS_PER_CALL: usize = 4096; /// Chat lines a mod may show per call, HUD lines and their length.