Robustness on varied PCs: explicit adapter selection and a guard for driver compiler crashes (as in Belobug/VIctory-Belobug-AMD) #15
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/fablinoo--kelvaroq#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@mutlusinan on GitHub · 2026-11-26 20:15 UTC · original
Two small, independent pieces that Belobug/VIctory-Belobug-AMD has and this engine does not.
1. Picking the GPU in the engine
The README says Windows selects the adapter for each executable, and that users should set High performance for
kelvaroq-engine.exe. The launcher profiles the preferred discrete GPU, but the engine may then run on another one. The settings would be picked for one card and used on another. Laptops with two GPUs are where this shows. Laptop reports such as #4 (RTX 3050 Laptop) are the kind of machine where it matters; I have not checked which GPU that run used.Belobug's version (in
crates/victory-shader/src/emit/host.rs, used by the runtime and the offline pipeline checks):EnumAdapterByGpuPreference);VICTORY_D3D12_ADAPTERtakes a zero-based DXGI index or part of the adapter's name (NVIDIA,RTX 3050), with tests for matching.2. Surviving driver compiler crashes
A driver's shader compiler can crash inside pipeline creation. Belobug catches that (
VICTORY_COMPILER_GUARD, on by default) and records the pipeline's key inwarm-bad.txtbeside the pipeline library. Later runs then skip that pipeline instead of crashing again (VICTORY_WARM_BAD). Code:crates/victory-gpu/src/pipeline/make.rs. It was written for AMD's compiler (Belobug/VIctory-Belobug-AMD#298: 29 compute pipelines lost to it).It should not be on for NVIDIA as it stands. NVIDIA's compiler (
nvgpucomp64.dll) raises access violations near address 0 and handles them itself. The guard sees those first-chance faults first and takes them for crashes. On an RTX 5080 that falsely quarantined 20–28 world mesh pipelines a run, and every later run refused them withE_FAIL(Belobug/VIctory-Belobug-AMD#158, open; it may also explain part of Belobug/VIctory-Belobug-AMD#160). Since this project is developed on NVIDIA, a port would have to be off on NVIDIA by default, or tell a handled fault from a real crash, before it helps.Estimated contribution (projection, not measured here)
Concerns
VICTORY_WARM_BAD=0is ignored. Belobug/VIctory-Belobug-AMD#294 fixes this by scoping the file by driver and build fingerprint. A port should take the fixed form.Basis of this comparison. Kelvaroq
e062a82(engine: fxceless/victory-forkf85101bwithnative/patches0000–0064 applied; all 61 apply cleanly) and Belobug/VIctory-Belobug-AMDa-publieratcd8dfc0. The two engines' common ancestor is fxcelessa26859f;a-publieris 558 commits past it, so the Belobug code needs a manual port onto the pinned tree as a new patch. Read from source only: nothing here was built or run. The estimates above are projections from the numbers each project published, not measurements.