Proposal: Hardware-aware worker pool sizing and adaptive concurrency #39
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?
Imported from edsuuu/VI-BR-PORT. Originally posted by nativ69 on 2026-11-29T13:44:27Z.
Motivation
Victory currently uses fixed defaults for several worker pools, regardless of the host CPU topology and the resources required by other pools.
My performance testing suggests that reducing the number of thin translation threads can significantly improve performance, potentially by reducing CPU and memory contention.
Benchmarks
Test environment
devResults
All tests were performed with
VICTORY_PIPELINE_WORKERS=10, varying onlyVICTORY_THIN_THREADS.Prison cell FPS represents the median of the last three samples.
Reducing
VICTORY_THIN_THREADSfrom 8 to 4 resulted in:Proposal
Phase A: Hardware-aware defaults
Automatically configure the following parameters at startup, based on the host CPU's available physical/logical cores and topology:
VICTORY_THIN_THREADSVICTORY_PIPELINE_WORKERSThis could initially be implemented in the launcher or startup script, while preserving explicit user overrides.
Rather than sizing each pool independently, their combined CPU requirements should be considered alongside the game engine and other Victory worker pools.
The sizing formula should be validated across different CPU configurations.
Phase B: Runtime adaptive concurrency
As a longer-term improvement, consider adjusting active worker counts at runtime based on:
This could allow CPU resources to be allocated differently during initial loading, steady-state gameplay and transitions into new areas.
Discussion
I'd like to hear the maintainers' and other contributors' thoughts before implementing this.
Additional benchmarks across different CPUs, with both cold and warm pipeline caches, would help establish sensible defaults.
Imported from edsuuu/VI-BR-PORT. Originally posted by github-actions[bot] on 2026-11-29T13:44:35Z.
Thanks for the report. A few details will help us reproduce it.
Please add:
%APPDATA%\VI-BR-PORT\logs\(open.log,shaders.log,warm.log), or the launcher's Logs panel and its Copy button%LOCALAPPDATA%\victory\data\7952987A\crashes.logand the newest*.crash.login that folder'stemp\Paste the text or drag the files into this issue. Thank you.
Obrigado pelo relato. Alguns detalhes ajudam a reproduzir.
Por favor, inclua:
%APPDATA%\VI-BR-PORT\logs\(open.log,shaders.log,warm.log), ou o painel Logs do launcher e o botão Copy%LOCALAPPDATA%\victory\data\7952987A\crashes.loge o*.crash.logmais novo na pastatemp\dessa pastaPode colar o texto ou arrastar os arquivos nesta issue. Obrigado.