Sekunda & NeonDrift
Sekunda Sekunda
Hey Neon, have you ever considered mapping out your race‑AI’s decision process into a leaner, step‑by‑step workflow so it can react faster with less computational overhead? I’ve got a few time‑slicing tricks that could shave milliseconds off your runs. Want to dive in?
NeonDrift NeonDrift
Sure, but only if it doesn't slow me down. Show me the trick, and make it fast.
Sekunda Sekunda
Let’s keep it tight: 1. **Early‑exit pruning** – add a “do not evaluate branches that can’t beat the best score so far” cut‑off. 2. **Move ordering** – start with the most promising actions (e.g., last move that actually changed the state) so the cut‑off fires earlier. 3. **Memoization** – store the best outcome for each unique state (hash of board + turn) and reuse it; use a lightweight LRU cache so you don’t over‑grow memory. 4. **Parallel depth‑first** – launch a few top‑level moves in separate threads; once one thread finds a winning path, cancel the rest. Implement these in a single pass; that’s usually enough to cut runtime by 40‑60 % without adding latency. Give it a shot and let me know how fast it gets.