Videomemory - DX9 vs DX11

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Videomemory - DX9 vs DX11

Post by Cybermax »

I have a question regarding videomemory setup between DX9 and DX11.

I am running the "VramSizeTest" tools from enbdev.com site, and have found posts about this issue on the bugzilla site up to a couple of years back, so I can only assume this is a rather old'ish "bug". Now that DX11 is working to a usable degree, I've done some testing using these tools, and come up with a question regarding this.

Using Wine-dev-2.22 (Also tested staging, but no change). CSMT = Enabled
Kernel 4.14
Gfx card: nVidia GTX970 (4GB vram)
System memory: 16GB

Starting the vramsizedx9.exe the result is 1888mb. This will be the same if its autodetected, or if I put manually the registry setting to 4096mb. Its only if I put this BELOW 2048mb that the value will change.
Starting the vramsizedx11.exe the result is 3840mb. This will be the result no matter what I put on the registry setting. It is never below/above 3840mb regardless of any VideoMemorySize registry setting.

I can only assume that the DX11 part of wine uses a different mechanic when determining the videomemory?

I tried fiddling with a staging patch that used the GL_NVX_gpu_memory_info extension to read memory, but the only different result was that if I did not use a VideoMemorySize registry setting, the vramsizedx9.exe file would crash. The vramsizedx11.exe would still detect 3840mb regardless of this.

Should i not be able to "force" a memory size for videoram in dx11? Is the 1888mb a set limit for DX9? (Guess its 2048 - some space, in the same way 3840 is 4096 - some space)

Ideas?

C
tim110011
Level 2
Level 2
Posts: 30
Joined: Wed Jul 05, 2017 2:29 am

Re: Videomemory - DX9 vs DX11

Post by tim110011 »

I use GTX 750 Ti ( 2GB vram), tested with wine-2.20-staging
vramsizedx9.exe report 1888mb
vramsizedx11.exe report 3840mb
Manually set registry to 3840 or any size, then run vramsizedx11 cause it complain "failed to allocate vram"
It seems this tool don't work correctly under linux/wine.
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Videomemory - DX9 vs DX11

Post by Cybermax »

tim110011 wrote:It seems this tool don't work correctly under linux/wine.
Either that, or memory detection IS different between the two.

Im not really sure, but in Windows, you have more that physical vram avalable as videomemory if needed. If you exceed this, vram will be swapped to regular ram. Im not sure what happens in wine if you exceed 3840mb usage of videomemory in dx11, or 1888mb in dx9 tho.
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Videomemory - DX9 vs DX11

Post by Cybermax »

https://www.phoronix.com/scan.php?page= ... ry-Problem

Hmm.. 380 and newer drivers all have this memory bug it seems. Not that it is related to the detection of memory, but if its a memory leak eating more than needed memory, my previous question would still be: What happens when you exceed that 1888mb (or 3840mb for dx11)?

Just extreme slowdown? Stuttering? Need to restart whatever game you are running under Wine?

C
Locked