RimPy icon indicating copy to clipboard operation
RimPy copied to clipboard

Texconv isn`t using GPU

Open MADxingjin opened this issue 2 years ago • 7 comments

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.

MADxingjin avatar Jun 22 '22 13:06 MADxingjin

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.

rimpy-custom avatar Jul 10 '22 09:07 rimpy-custom

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: RimPy_2022-09-28_09-50-55

Using Process Lasso, I was able to grab what was actually being ran with texconv, and found it to be the following: 2022-09-28_09-50-42

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: Taskmgr_2022-09-28_18-34-09

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.

jhagrid77 avatar Sep 29 '22 00:09 jhagrid77

Encountered same issue, All 12 CPU all cores at 100% for several hours, Process Explorer shows GPU usage below 1% for the entire duration.

taivo-tobreluts avatar Oct 27 '22 21:10 taivo-tobreluts

Same thing here, it does not use the gpu at all but uses all 12 of my cores

KShivum avatar Nov 26 '22 23:11 KShivum

bump, i think this need a closer look from devs asap.

TeusDev avatar Dec 01 '22 13:12 TeusDev

Same thing here.

kn007 avatar May 01 '23 16:05 kn007

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

DonFlymoor avatar May 02 '23 03:05 DonFlymoor