CPU hot paths: lock-free HostHeap::keep_ref, raw keyboard input, step-vec reuse, guard_ahead, per-pipeline wakeup #7
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ImTaneax--VIctory-RTX3050-4gb!7
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@adib-cyber007 on GitHub · 2026-12-02 08:40 UTC · original
adib-cyber007:pr/3-cpu-hotpaths-and-raw-input→main· +663 −95 · 7 files · 7 commits · openPorts 6 clean, independent CPU & lock-contention optimizations (GPL-3.0, kept as separate commits so any can be cherry-picked individually):
HostHeap::keep/keep_ref(DoubleGhosty/cool_fox4bf0ab95, fabian-wolf09): Atomickept_rawfast path skips the slot mutex + COMAddRef/Releasewhen a draw slot already holds the same resource (~0.2 core saved on recording threads).kept_ingated under#[cfg(feature = diagnostics)].VICTORY_RAW_KEYS) (DoubleGhosty/cool_fox2263ef84, fabian-wolf09): Replaces 240GetAsyncKeyStatecalls every 8 ms (~30,000 syscalls/s, ~0.4 core) with a message-onlyRIDEV_INPUTSINKwindow + 256 ms safety reconciliation while preserving mouse polling (VICTORY_RAW_KEYS=0reverts).DoubleGhosty/cool_foxb2c0275a, fabian-wolf09): ReusesBatch::refresh_aheadtouchesandcard_steps::does_ofvectors via thread-local, avoiding ~1 MBNtAllocateVirtualMemory/NtFreeVirtualMemorychurn per submission under Windows's address-space lock.join_rangesdedup (readmet3xt-lab/foxhoundc4a74c18, David Valor).Completioncondvar wakeup (readmet3xt-lab/foxhoundeffe3e38, JokerAttack): Eliminates globalDONEcondvarnotify_all().VICTORY_GUARD_BATCH) (readmet3xt-lab/foxhound8ecf5ab5, Grein /VIctory-NVIDIAa6567e07):watch::guard_aheadadapted cleanly for this fork's Renderer Port #6 (RwLock) and Port #7 (sharded journal), wired throughtoggled!for liveVICTORY_AB=30,VICTORY_GUARD_BATCH(VICTORY_GUARD_BATCH=0disables).Verification
watch::many_askers_tests::no_write_to_views_is_lost_with_batched_guardspassed across Port #6 off, on, and mixed.pipeline::make::tests(completing_another_pipeline_does_not_notify_this_waiter,pipeline_completion_observes_preexisting_result_and_keeps_timeout), all 27gameinputtests, and default +--features diagnosticsbuilds passed with zero new warnings.start-ab.ps1.Pr/3 cpu hotpaths and raw inputto CPU hot paths: lock-free HostHeap::keep_ref, raw keyboard input, step-vec reuse, guard_ahead, per-pipeline wakeupView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.