protonscr

The DLLs should be smaller.

dxvkclosed
doitsujin/dxvk#3431 · opened 2023-05-18 by ghost · updated 2023-06-15 · 11 comments · github
1 matching comments, n / p to jump
?ghost 2023-05-18 github

Please change the "--buildtype release" with "--optimization s".
On the https://mesonbuild.com/Builtin-options.html#details-for-buildtype it says the "release" comes with "debug false" and "optimization 3" but on the https://mesonbuild.com/Commands.html#setup we can use "--optimization s" for maximum compiler optimizations because the "--debug" is false by default if is not defined, in other words, smaller DLLs which means when a game loads the files it will have a copy for each DLL into the memory (RAM) but for some users like me that cant have better PCs because some don't have a job or we have too much bills to pay, each MB of size counts.
Also, the performance is not affected in a negative way, my PC have 8 GB and my system with everything closed it eats 5 GB so 3 GB left for games, for me each MB counts.
Please just make the change it doesn't hurt anything.

I forgot to mention the changes could be made on "package-release.sh".

I really wait the DXVK 2.3 with this change too, i'm bored wasting my time with my fork.

Ggabriele2000 2023-05-18 github

The problem is that your system eats 5GB of RAM, plus if you use ZRAM you'll have three times the RAM, basically.
I'm curious how -2MB (spitting a random number here) will affect the amount of available RAM.

I forgot to say: you don't have 3GB left for games because if the game requests more than that, before you'll reach the limit your system will aggressively free RAM in order to satisfy the process, if possible.

Mmbriar 2023-05-18 github

How much size does it actually save? It's clearly not going to even be 2MiB (which would be like an 80% reduction in size from the option alone). I struggle to imagine a scenario where this would ever help, even on PCs with low RAM. On the other hand, optimizing for size can reduce performance of the resulting binary because the compiler won't unroll loops as aggressively, amongst other stuff. Although neither is likely to make any difference in practice for DXVK.

Ggabriele2000 2023-05-18 github

Maybe is my problem because I'm poor and can't have a decent PC, but it will be very kind with care about my situation (being poor) by the developers to just making this innocent change

I too am poor and recently landed a job, like a few days ago, but that doesn't matter, since I asked how a few MB less are going to change the situation.
Plus, you're poor? Install Linux and run games there if you're concerned about RAM usage, 5/8GB ARE TOO MUCH and since you're using Windows, it's not something that DXVK should change, since you don't even need DXVK.

[Personal Opinion]
DXVK is for Linux only, the fact that is windows-compatible is a coincidence at best; Windows shouldn't even be allowed to run it.

BBlisto91 2023-05-18 github

How much size does it actually save

About 500-700 Kilobyte per dll ish (checked for fun on Linux)

Edit: But as mbriar said, the problem with optimizing for size like here is that there usually is a tradeoff in some perf scenarios. If there wasn't it would just be a default in a release build, tho i also don't know how it would be in practice for dxvk.

Ggabriele2000 2023-05-18 github
  1. Linux for me is not usefull at this moment because easy anti cheat and g hub software

I completely understand that, however, Easy anti-cheat and BattlEye are supported if you install the runtimes from Steam.

2. for d3d9 from 3.6 MB to 1 MB

3. for d3d11 from 4.1 MB to 1 MB

4. for dxgi from 2.7 MB to 1 MB

That's 7.4MB less, it's irrelevant and I can't fathom why you can't realize that opening a single notepad istance will consume more RAM.

Ggabriele2000 2023-05-18 github

How much size does it actually save

About 500-700 Kilobyte per dll ish (checked for fun).

see is not a bad thing, DLLs in general should be smaller than EXE files

What games are we talking about?
Your "everyday game" has an .exe that is about 15MB and more.
A game using Unreal Engine 4 as game engine has the main .dll with a size of minimum 40MB.

EDIT: Since Windows 10 there is this magical RAM compression thing that compresses stuff on the RAM, so you're already saving space.

Ggabriele2000 2023-05-18 github

i need dxvk for 30-40 fps boost in all my games tested and i play

That alone tells me that they're DX9 games.

Again though: how -7.4MB are going to change your situation?

Ggabriele2000 2023-05-18 github

it triggers the pagefile usage and froze my HDD by 100% usage

You're using an HDD, that why it freezes everything: the pagefile is surely saturating your HDD load.

actualy only Star Conflict is DX9

If you're telling me that you have 30FPS increase with DX11 games there's something seriously wrong here: DXVK on DX11 runs almost at windows speed and sometimes more, but a 30FPS increase is only manageable with DX9 games (DX9 is a mess and DXVK has a wonderful implementation, DX9 -> VULKAN is a blessing in this case).

Ggabriele2000 2023-05-18 github

the games i listed is using max 80% of my gpu and the cpu is max 60% but with DXVK is 100% gpu and 80% cpu don't ask me how or why, bcs idk, i tried with fresh install of windows and same result

I was talking about FPS, not usage.

Plus DXVK uses more VRAM (Video RAM) and it's normal.
Don't confuse GPU and CPU load with "more performance" since it's not related.

KK0bin maintainer 2023-05-18 github

We're obviously not gonna optimize for size (over performance) to save 10MB.

@SirSAC Please reduce the number of poorly considered suggestions. I get it, you mean well, but so far it's mostly been bullshit to put it bluntly.

RRedundanz 2023-05-19 github

... im done using this project ...

thank god

Nothing extracted yet.