HGL
distinguished-blush
[SOLVED] Kill Knight not utilizing gpu, no bottleneck
I frame capped at 120 fps, but the game doesn't even go beyond 60fps. And that's not the first game to behave that way. Dungeons 3 also same thing. Heroic installed from aur, bin package, all wine dependencies installed. Amdgpu driver in use, proprietary one.
40 Replies
distinguished-blushOP•6mo ago
I do know that's not heroic's fault
Just hoping that maybe someone knows what might be the problem. Is it on game's end or on my
robust-apricot•6mo ago
Does adding a env var called
WINE_CPU_TOPOLOGY
with the value set to 4:0,1,2,3
help?
Some unity games can have a huge drop in FPS on systems with many cores. The variable will make the game only see the first 4 (virtual if they are split into threads).
I am unsure which cores are the Power and which are Efficiency though.distinguished-blushOP•6mo ago
it seems that yes, now having like 50-60% gpu load instead of 40%
how far is save to extend this var? like 6-8 cores?
i tried to use 8 vcores, but still most of the time having 60fps and gpu is mostly working at 40-50% now, i think this var is not the main reason hence
robust-apricot•6mo ago
I can try to give the game a look over later if I remember
distinguished-blushOP•6mo ago
thank you sir
actually removed the var completely and don't see a difference at all, placebo effect it was .. (
robust-apricot•6mo ago
Hopefully you will be _glad
distinguished-blushOP•6mo ago
hopefully indeed )
finally someone uses my nickname as intended
robust-apricot•6mo ago
I am not seeing any easy tricks to improve performance on my setup at least. But it is also already running ok
Does anything change for you if you set a env var called
DXVK_CONFIG
with the value "d3d11.cachedDynamicResources = a"
?distinguished-blushOP•6mo ago
now this var definitely helped
gpu usage went from 40-50 to 80-100
most of the time its at 90, sometimes hitting 100 sometimes getting down to 80
but its already much better
how should i understand when and where to set this var? if i get similar problems in some games
and thank you a lot, sir, in this kind of games you want most fps you can get so you made my day
robust-apricot•6mo ago
You can try it at games where you seem CPU bound like if the GPU is underutilized.
In dxvk we enable it, or a variation of it, for some games where the game itself is acting in a way that everyone would benefit from it. Though most games do not.
It can also be used by people on setups where they have bad BAR performance, as in the BAR in Resizable BAR. Since I didn't see a benefit on my setup I'm going to assume that it isn't the game being weird and instead your setup that isn't acting optimally.
The reason that it isn't just enabled globally for everything is with some GPU bound games it can instead decrease performance
distinguished-blushOP•6mo ago
can you give me a query with which i can start research on how to optimize my BAR performance? I did read everything there was on arch wiki on the subject of eGPU via thunderbolt , no mentions of any optimizations i could've done
or is it rather hardware bound and system agnostic?
robust-apricot•6mo ago
Note I don't have technical of the why's and how's as I am not a dev (tester).
I am not aware that you can improve BAR performance per say. Unless there is some BIOS update that improves things.
Do you have a eGPU?
distinguished-blushOP•6mo ago
yes, that's an egpu
GPD G1 rev 2
robust-apricot•6mo ago
Oh
Yes then the option is likely useful to set in general I imagine
(maybe, I don't have a eGPU)
distinguished-blushOP•6mo ago
thank you for the advice sir, will go do my research now, maybe will be able to improve the system performance )
will mark thread as resolved
robust-apricot•6mo ago
Do not quote me on this, but I think in regards to eGPUs it might help save some bandwidth over the thunderbolt connection which can be a limiting factor for those versus the direct PCIe connection of a regular internal dGPU
The above config is for d3d11 and d3d10 games. For d3d9 and d3d8 through dxvk the similar config would be
d3d9.cachedDynamicBuffers = True
compatible-crimson•6mo ago
unlikely probably? does your system connect to the eGPU through occulink @_sad
distinguished-blushOP•6mo ago
no, thunderbolt
i was just researching
gpd g1 has 2 ports for connection - oculink and USB4, i am connecting via USB4, thunderbolt 4 cable, all ports on my laptop are thunderbolt 4
the PCIe link uses Gen3x4 , so not thunderbolt 4
for now my bad googling didn't got me any results upon whether this is normal for USB4 device connected to thunderbolt 4 device via thunderbolt 4 cable to default to thunderbolt 3 interface
cuz that's what my
lspci -tv
shows:
compatible-crimson•6mo ago
ah yeah that's slower
occulink is roughly similar to a full bandiwdth pcie 4 16x slot
that being said its plenty fast enough probably
robust-apricot•6mo ago
It is at least a thing for eGPu users to try
https://github.com/doitsujin/dxvk/issues/3694
distinguished-blushOP•6mo ago
i do hope so )
cuz it made me even more sad when i saw that it uses thunderbolt 3, not 4
compatible-crimson•6mo ago
oh 3?
distinguished-blushOP•6mo ago
yep
compatible-crimson•6mo ago
thaaat might be problematic what gpu?
distinguished-blushOP•6mo ago

distinguished-blushOP•6mo ago
so i am right? the USB4 connection should default to thunderbotl 4?
compatible-crimson•6mo ago
pci express 3.0 x16 does like 15 GB/s thunderbolt 3 does 5
wait so how is your egpu connected?
thunderbolt? usb4?
which
distinguished-blushOP•6mo ago

compatible-crimson•6mo ago
that's slow 🙃
distinguished-blushOP•6mo ago
the egpu has USB4 port, laptop thunderbolt 4
cable is thunderbolt 4
compatible-crimson•6mo ago
clearly something isnt tb4
distinguished-blushOP•6mo ago
maybe i do actually need to set that
options amdgpu pcie_gen_cap=0x40000
kernel paramcompatible-crimson•6mo ago
seems tb4 isnt really any different speed wise .. still 5GB/s
which is the same as usb4 fwiw haha x_x
aaanyway pcie 3.0 x16 is 3 times faster, and 4.0 is 6 times faster
x_x
distinguished-blushOP•6mo ago
so thing are connected as intended for me?
compatible-crimson•6mo ago
well they're connected at the fastest speed you can probably get heh
which is still slower than a pcie port.. so your gpu might be a bit starved.. anyway its probably not a huge deal ultimately but it means your gpu will always perform a little worse than it would on a real pcie bus
robust-apricot•6mo ago
Go out in to the world and test
Be free
distinguished-blushOP•6mo ago
true
robust-apricot•6mo ago
Afaik there isn't some standard reliable way to detect if a GPU is a eGPU, so there isn't a easy way (if at all) for dxvk or other to apply specific optimization for them.
Out of curiosity could you attach the full output of this?
distinguished-blushOP•6mo ago
robust-apricot•6mo ago
Thanks!