How can i speed up pipelines queued #2468

Open
opened 2026-11-26 05:31:27 +00:00 by github-bot · 8 comments
Owner

@⁠tactileteamrob on GitHub · 2026-11-25 19:34 UTC · original

CPU - INTEL I9-12900k OCed by turbo offset of +2 soo 1 core can get 5.3 ghz core 8 50 16cores 24 threads
RAM - 32gb 2x16 ddr4 4000mhz cl18
GPUS = NVIDIA RTX 5070 12GB VRAM (for games) - NVIDIA RTX 2060 6GB VRAM *for displaying 4k and physx)
OS -Windows 11 home 25h2

all things are up to date afaik
as the title is how can i speed up the pipeline queued
as i can site on the black screen for like 30 minutes and is got to 500~ out of 57000~

the console is active but its just showing this stuff
https://pastebin.com/wRfE2Qyg
all the closely repeat text is basically going from 520 done to 545~ done out of 57400~

**@⁠tactileteamrob** on GitHub · 2026-11-25 19:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468) CPU - INTEL I9-12900k OCed by turbo offset of +2 soo 1 core can get 5.3 ghz core 8 50 16cores 24 threads RAM - 32gb 2x16 ddr4 4000mhz cl18 GPUS = NVIDIA RTX 5070 12GB VRAM (for games) - NVIDIA RTX 2060 6GB VRAM *for displaying 4k and physx) OS -Windows 11 home 25h2 all things are up to date afaik as the title is how can i speed up the pipeline queued as i can site on the black screen for like 30 minutes and is got to 500~ out of 57000~ the console is active but its just showing this stuff https://pastebin.com/wRfE2Qyg all the closely repeat text is basically going from 520 done to 545~ done out of 57400~
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:31:27 +00:00
Author
Owner

@⁠kromka45 on GitHub · 2026-11-25 19:49 UTC · original

same from amd fork. I reached the 500 over 15 minutes on 9060xt and ryzen 7 1700 + ddr 4 16gb 3600...

But at some point stops due to memory allocation of 1747778 bytes failed.

Also there is some failed ones which i can expose

**@⁠kromka45** on GitHub · 2026-11-25 19:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7172806055) same from amd fork. I reached the 500 over 15 minutes on 9060xt and ryzen 7 1700 + ddr 4 16gb 3600... But at some point stops due to memory allocation of 1747778 bytes failed. Also there is some failed ones which i can expose
Author
Owner

@⁠kromka45 on GitHub · 2026-11-25 19:49 UTC · original

for example xcl: D3D12.X: the driver refused the compute PSO of record bd968d88fabf544f (838288 B DXIL, driver cache a5c6f60cddb64f80-cca90-0.pso) with 0x8007000e after 2740 ms in the driver: its dispatches are skipped

**@⁠kromka45** on GitHub · 2026-11-25 19:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7172819368) for example xcl: D3D12.X: the driver refused the compute PSO of record bd968d88fabf544f (838288 B DXIL, driver cache a5c6f60cddb64f80-cca90-0.pso) with 0x8007000e after 2740 ms in the driver: its dispatches are skipped
Author
Owner

@⁠tactileteamrob on GitHub · 2026-11-25 19:50 UTC · original · edited 2026-11-25 19:53 UTC

@⁠kromka45 as of rn i am at 612 done 57397 pipes lines queued and its still going
with these being the current cmd window
xcl: xapu: 817821 Opus packets decoded (0 errors), xcl: xapu: 822736 Opus packets decoded (0 errors), 786977376 frames, 790776685 non-zero samples xcl: xapu: 825527 Opus packets decoded (0 errors), 789646440 frames, 793439334 non-zero samples xcl: D3D12.X: driver compile start #1369: compute PSO, 1181232 B DXIL, record ab570963c407e5c0, driver blob absent xcl: compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab) xcl: xapu: 828349 Opus packets decoded (0 errors), 792345264 frames, 796131413 non-zero samples xcl: xapu: 831161 Opus packets decoded (0 errors), 795035424 frames, 798814996 non-zero samples xcl: compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab) xcl: xapu: 833943 Opus packets decoded (0 errors), 797696472 frames, 801470003 non-zero samples

**@⁠tactileteamrob** on GitHub · 2026-11-25 19:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7172843464) · edited 2026-11-25 19:53 UTC @⁠kromka45 as of rn i am at 612 done 57397 pipes lines queued and its still going with these being the current cmd window xcl: xapu: 817821 Opus packets decoded (0 errors), xcl: xapu: 822736 Opus packets decoded (0 errors), 786977376 frames, 790776685 non-zero samples xcl: xapu: 825527 Opus packets decoded (0 errors), 789646440 frames, 793439334 non-zero samples xcl: D3D12.X: driver compile start #1369: compute PSO, 1181232 B DXIL, record ab570963c407e5c0, driver blob absent xcl: compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab) xcl: xapu: 828349 Opus packets decoded (0 errors), 792345264 frames, 796131413 non-zero samples xcl: xapu: 831161 Opus packets decoded (0 errors), 795035424 frames, 798814996 non-zero samples xcl: compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued in 0 slabs; scratch 0 MiB (most 0, largest dispatch 0 in one slab) xcl: xapu: 833943 Opus packets decoded (0 errors), 797696472 frames, 801470003 non-zero samples
Author
Owner

@⁠ivall on GitHub · 2026-11-25 19:55 UTC · original

You do not need all 57,000, and waiting for that number to reach 0 is not how to get through. Build the ones your run really uses once, offline, and start the game again. This is how we do it on amd-dev; the same commands work on main.

What the number means

  • A retail title creates more than 50,000 pipelines while it starts and uses few of them. XCL builds one only when it is used for the first time; "pipelines queued" counts every pipeline that is not built yet, also those the title never uses.
  • Every pipeline a run uses is noted in %LOCALAPPDATA%\XCL\dxil\used-pipelines.txt. In our list there are 1,810 entries after many runs.
  • What holds the black screen is mostly the few big compute programs among them, which the graphics driver compiles when the game first needs them.

Steps (PowerShell; D:\Game is your game folder)

$env:XCL_DIRECT_DXIL = "1"          # big compute programs are split into pieces; your log says "0 programs split", so it was probably not set
$env:XCL_ADAPTER = "5070"           # only with two GPUs: part of the card's name, so that both commands use the same card
$env:XCL_PIPELINE_THREADS = "4"     # driver compiles at once in the offline pass; 1 or 2 with 16 GB of RAM
$env:XCL_PIPELINE_MAX_KB = "1500"   # the offline pass leaves bigger programs to the game run

xcl run D:\Game                     # 1. let it get as far as it gets, then close it
xcl shaders D:\Game\shaders.rpf --precompile --only cs --pipelines --used-only   # 2. with the game closed
xcl run D:\Game                     # 3. again
  • Repeat 2 and 3: each run gets further, notes more pipelines, and the next pass builds only the new ones.
  • Keep the same variables set for all the steps (same PowerShell window). With another XCL_DIRECT_DXIL or XCL_HEAP_WINDOWS the programs are different ones and what you built is not used.
  • Do it again after a driver update or an XCL update that changes the shader translator.

What to expect (AMD RDNA4, Windows, DXC 1.8.2502.11)

  • A cold pass took about 11 minutes: 900 compute programs (258 of them split into 2,219 pieces), 1,789 that no run had used passed over. Repeated with everything built, it took 3 seconds.
  • NVIDIA takes longer on the big programs; see #2088.
  • It covers compute only. Graphics pipelines are still built by the game run; those an earlier run used are started while the game loads.

memory allocation of … bytes failed and 0x8007000e mean that memory ran out (RAM plus page file). Give Windows a bigger page file, close other programs, use fewer XCL_PIPELINE_THREADS. XCL_TEXTURE_LEVEL_PAGES=1 (off by default, for the game run) lowers the game's memory use. I cannot promise that 16 GB of RAM is enough.

What this does not do: it shortens the wait, it does not make the game playable. Parts of the wait are still open work: big programs that are not split yet (#2097), and split ones that are still compiled whole on the game's thread (#2404). amd-dev is a working branch, not a release: on our card the device is removed some time after the world appears, and several times the whole PC froze. Save your work before you run it.

AI use: Claude Code (Claude Opus 5.5) checked this against the code and the logs of our own runs and wrote it on the maintainer's behalf. Not tested on your two cards.

**@⁠ivall** on GitHub · 2026-11-25 19:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7172940033) **You do not need all 57,000, and waiting for that number to reach 0 is not how to get through.** Build the ones your run really uses once, offline, and start the game again. This is how we do it on `amd-dev`; the same commands work on `main`. **What the number means** - A retail title creates more than 50,000 pipelines while it starts and uses few of them. XCL builds one only when it is used for the first time; "pipelines queued" counts every pipeline that is not built yet, also those the title never uses. - Every pipeline a run uses is noted in `%LOCALAPPDATA%\XCL\dxil\used-pipelines.txt`. In our list there are 1,810 entries after many runs. - What holds the black screen is mostly the few big compute programs among them, which the graphics driver compiles when the game first needs them. **Steps** (PowerShell; `D:\Game` is your game folder) ```powershell $env:XCL_DIRECT_DXIL = "1" # big compute programs are split into pieces; your log says "0 programs split", so it was probably not set $env:XCL_ADAPTER = "5070" # only with two GPUs: part of the card's name, so that both commands use the same card $env:XCL_PIPELINE_THREADS = "4" # driver compiles at once in the offline pass; 1 or 2 with 16 GB of RAM $env:XCL_PIPELINE_MAX_KB = "1500" # the offline pass leaves bigger programs to the game run xcl run D:\Game # 1. let it get as far as it gets, then close it xcl shaders D:\Game\shaders.rpf --precompile --only cs --pipelines --used-only # 2. with the game closed xcl run D:\Game # 3. again ``` - Repeat 2 and 3: each run gets further, notes more pipelines, and the next pass builds only the new ones. - Keep the same variables set for all the steps (same PowerShell window). With another `XCL_DIRECT_DXIL` or `XCL_HEAP_WINDOWS` the programs are different ones and what you built is not used. - Do it again after a driver update or an XCL update that changes the shader translator. **What to expect** (AMD RDNA4, Windows, DXC 1.8.2502.11) - A cold pass took about 11 minutes: 900 compute programs (258 of them split into 2,219 pieces), 1,789 that no run had used passed over. Repeated with everything built, it took 3 seconds. - NVIDIA takes longer on the big programs; see #2088. - It covers compute only. Graphics pipelines are still built by the game run; those an earlier run used are started while the game loads. **`memory allocation of … bytes failed` and `0x8007000e`** mean that memory ran out (RAM plus page file). Give Windows a bigger page file, close other programs, use fewer `XCL_PIPELINE_THREADS`. `XCL_TEXTURE_LEVEL_PAGES=1` (off by default, for the game run) lowers the game's memory use. I cannot promise that 16 GB of RAM is enough. **What this does not do:** it shortens the wait, it does not make the game playable. Parts of the wait are still open work: big programs that are not split yet (#2097), and split ones that are still compiled whole on the game's thread (#2404). `amd-dev` is a working branch, not a release: on our card the device is removed some time after the world appears, and several times the whole PC froze. Save your work before you run it. AI use: Claude Code (Claude Opus 5.5) checked this against the code and the logs of our own runs and wrote it on the maintainer's behalf. Not tested on your two cards.
Author
Owner

@⁠kromka45 on GitHub · 2026-11-25 20:04 UTC · original

Thank you Ival, it was what i expected - thanks for explanation to us

**@⁠kromka45** on GitHub · 2026-11-25 20:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7173158478) Thank you Ival, it was what i expected - thanks for explanation to us
Author
Owner

@⁠tactileteamrob on GitHub · 2026-11-25 20:10 UTC · original

ya man thank you tho im more stupid then at first glance soo i just put ur message into chatgpt to help me understand as iv never once goten anywhere near this area of tech and games and code sorry for my stupidity and ty man

**@⁠tactileteamrob** on GitHub · 2026-11-25 20:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7173292415) ya man thank you tho im more stupid then at first glance soo i just put ur message into chatgpt to help me understand as iv never once goten anywhere near this area of tech and games and code sorry for my stupidity and ty man
Author
Owner

@⁠kromka45 on GitHub · 2026-11-25 20:34 UTC · original

DXC: dxcompiler 1.9.2609.5 -> i am using one as i can see - should i use Windows, DXC 1.8.2502.11 ?

**@⁠kromka45** on GitHub · 2026-11-25 20:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7173879380) DXC: dxcompiler 1.9.2609.5 -> i am using one as i can see - should i use Windows, DXC 1.8.2502.11 ?
Author
Owner

@⁠kromka45 on GitHub · 2026-11-25 20:55 UTC · original

--used-only: 873 pipelines earlier runs used (used-pipelines.txt) - so thats for my runs i used only 873 of them.
Now the pipelines are in precompilation pipelines: 1075 made, 0 refused

**@⁠kromka45** on GitHub · 2026-11-25 20:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/2468#issuecomment-7174376259) --used-only: 873 pipelines earlier runs used (used-pipelines.txt) - so thats for my runs i used only 873 of them. Now the pipelines are in precompilation pipelines: 1075 made, 0 refused
This discussion has been locked. Commenting is limited to contributors.
No description provided.