You can sign up to get a daily email of our articles, see the Mailing List page!
Support us on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! Alternatively, you can support us on Paypal and Liberapay!
  Go to:
The Witcher 3 in Wine
Shmerl commented on 3 December 2017 at 12:40 am UTC

There are also a bunch of pending patches by Józef Kucia here: https://source.winehq.org/patches/

Shmerl commented on 3 December 2017 at 2:05 am UTC

Nope. Unfortunately those patches by Matteo Bruni don't replace mips patches from staging - without using the later, Witcher 3 gets black spots on the water again. Staging now needs a major deep rebase to catch up.

mrdeathjr commented on 3 December 2017 at 4:19 am UTC

ShmerlThere are also a bunch of pending patches by Józef Kucia here: https://source.winehq.org/patches/

Very interesting patch set but dont seems affects DX11, stay focus mainly for DX8-DX9 clip planes (only left henri verbeet aprove)

However very interesting patch set

Ehvis commented on 3 December 2017 at 4:01 pm UTC

Had an opportunity to mess with TW3 for the weekend. I built wine git + the patches Shmerl listed in his howto. Had to make a bunch of changes to get those to apply (and remove the audio patch entirely).

System was a i7 4790+GTX 970. Game appeared to render flawlessly, but I only did the start bit until entering the town so I could do some repeated running around. FPS was pretty low regardless of resolution and settings. What made the game practically unplayable was the horrid input lag. Sometimes Geralt kept running for several seconds after releasing the key. The odd thing was, during that time I was perfectly able to rotate the view.

I used the Wine fps debug to check some runs around the town and got about 15-20 FPS, CPU load 250%-270% and GPU load 50%-60%. So heavily CPU bound, as expected. I also experienced occasional lag spikes. Especially in cut scenes where it even caused the lip desyncing.

To get a better idea about what Wine was doing, I also built "Oprofile 1.2.0" and did some profiling. However, I don't think my understanding of that system is good enough to draw any definitive conclusions. However, what it appears to show was the following:
- ~30%-35% of the time spent in wined3d
- ~35%-40% of the time spent in witcher3.exe
- ~6%-8% of time spent in nvidia opengl lib.

The Wine wiki says "If more than 5% CPU time are spent in wined3d this is suspicious.", so this result appears to suggest that something is not going right in wined3d. However, the time results for wined3d.dll kept switching between two function: shader_glsl_generate_ffp_fragment_shader and shader_arb_load_constants_f. I'm not really sure what I should make of that. However, I do find it odd that the first one could be hit so often, since I wouldn't expect the generation of shaders to go on continuously. Unless, of course, this exactly the problem that only happens on nvidia.

I tried to analyse using the "callgraph" feature, but this suggested that most of the time was spent for witcher3.exe in a function called "ntdll.dll:enumerate_key", which seems highly unlikely.

Anyway, maybe these results can prod the TW3 owners to try some more in depth testing and maybe comparing some profiling results between Mesa and Nvidia.

Shmerl commented on 3 December 2017 at 4:14 pm UTC

EhvisHad an opportunity to mess with TW3 for the weekend. I built wine git + the patches Shmerl listed in his howto. Had to make a bunch of changes to get those to apply (and remove the audio patch entirely).

Yep, I'll update the instructions, but now there is no way to consistently apply that to Wine master. Staging needs a catch up.

Shmerl commented on 3 December 2017 at 4:18 pm UTC

EhvisTo get a better idea about what Wine was doing, I also built "Oprofile 1.2.0" and did some profiling.

Is oprofile better than let's say regular perf?

Shmerl commented on 3 December 2017 at 4:20 pm UTC

EhvisAnyway, maybe these results can prod the TW3 owners to try some more in depth testing and maybe comparing some profiling results between Mesa and Nvidia.

Can you please post them here: https://bugs.winehq.org/show_bug.cgi?id=42592

Ehvis commented on 3 December 2017 at 5:09 pm UTC

ShmerlIs oprofile better than let's say regular perf?

No idea. I took oprofile because it was recommended here. I had no time to investigate further.

beko commented on 3 December 2017 at 5:59 pm UTC

Movement lag can be prevented by running it on own X. Gnome (for me) seems to trouble Wine on Tw3. I may add a howto tomorrow if you need one.

Shmerl commented on 3 December 2017 at 6:00 pm UTC

bekoMovement lag can be prevented by running it on own X. Gnome (for me) seems to trouble Wine on Tw3. I may add a howto tomorrow if you need one.

You probably need to disable compositing when running Wine.

  Go to:

Due to spam you need to Register and Login to comment.


Or login with...

Livestreams & Videos
None currently, submit yours here!
See more!
Popular this week
View by Category
Contact
Latest Forum Posts
Facebook