RimPy
RimPy copied to clipboard
Texconv isn`t using GPU
When using texconv to convert texture to DDS format, it is not USING GPU. Expected behavior: Texconv.exe using The first GPU attached to PC results in visualable GPU USAGE RISING when monitoring in taskmgr. Encountered behavior: Texconv.exe IS NOT USING ANY GPU but uses all CPU CORE Which slows entire system down.
How to fix: Check Texconv wiki and add "-gpu" in command line.
It uses GPU, but CPU is important too. In most cases antivirus software may load your CPU hard, because it have to check each file while files conversion.
For me: issue need to be tested well, not closing for now.
Adding to this in hopes of at least providing some additional information.
I too have found that even when selecting the "BC7 Texconv Compressor (GPU, high quality)" within the "Optimize tex" panel within version 1.2.6.25 of RimPy, that my GPU is not actually being utilized:
Using Process Lasso, I was able to grab what was actually being ran with texconv, and found it to be the following:
Of note, is the lack of the "-gpu" argument / option. Additionally seen with high CPU usage (all 12 cores, 24 threads of my Ryzen 9 5900x being pegged at 100% usage until it finishes).
Attempting to use those arguments / options as well as set texconv to use my GPU, I came up with this:
E:\Games\RimPy\compressors\texconv.exe -r:keep -f BC7_UNORM -y -vflip -fixbc4x4 -m 1 -gpu 0 -o E:\Games\Steam\steamapps\workshop\content\294100 *.png
Upon running this, my GPU usage immediately shot up, while my CPU stayed practically idle:
From my testing, if the -gpu
argument / option is passed it also requires an index to be provided associated to the GPU, and will throw an error if that is not provided, leading me to believe that the -gpu
argument / option isn't being passed when using texconv.
Additionally, it seems like it might be beneficial to identify the GPUs that texconv sees for systems which may have multiple GPUs (integrated graphics with dedicated graphics perhaps), allowing for the user to select the GPU to be used.
Encountered same issue, All 12 CPU all cores at 100% for several hours, Process Explorer shows GPU usage below 1% for the entire duration.
Same thing here, it does not use the gpu at all but uses all 12 of my cores
bump, i think this need a closer look from devs asap.
Same thing here.
for now you can run <RimPy location>\compressors\texconv.exe -r:keep -f BC7_UNORM -y -vflip -fixbc4x4 -m 1 -gpu 0 -o <steamlocation>\steamapps\workshop\content\294100 <steamlocation>\steamapps\workshop\content\294100\*.png