ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.44k stars 1.07k forks source link

Halo Wars (459220) #480

Open d10sfan opened 6 years ago

d10sfan commented 6 years ago

Halo Wars is working almost very well, but there's some black flickering when moving the camera on the terrain. Specs are below, and attached is a wine log, if it helps any. steam-459220.log

The log has alot of these lines in it:

d3d_shader:shader_sm4_read_instruction_modifier Unhandled modifier 0x00155543.

Computer Information: Manufacturer: Unknown Model: Unknown Form Factor: Desktop No Touch Input Detected

Processor Information: CPU Vendor: GenuineIntel CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz CPU Family: 0x6 CPU Model: 0x5e CPU Stepping: 0x3 CPU Type: 0x0 Speed: 4200 Mhz 8 logical processors 4 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported

Operating System Version: Ubuntu 18.04.1 LTS (64 bit) Kernel Name: Linux Kernel Version: 4.15.0-32-generic X Server Vendor: The X.Org Foundation X Server Release: 11906000 X Window Manager: Xfwm4 Steam Runtime Version: steam-runtime-beta-release_2018-06-14

Video Card: Driver: NVIDIA Corporation GeForce GTX 1070/PCIe/SSE2 Driver Version: 4.6.0 NVIDIA 396.54 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x10de DeviceID: 0x1b81 Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 2560 x 1080 Desktop Resolution: 2560 x 1080 Primary Display Size: 31.42" x 13.15" (34.06" diag) 79.8cm x 33.4cm (86.5cm diag) Primary Bus: PCI Express 16x Primary VRAM: 8192 MB Supported MSAA Modes: 2x 4x 8x 16x

Sound card: Audio device: Realtek ALC1150

Memory: RAM: 15988 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 233201 Mb Largest Free Hard Disk Block: 193988 Mb VR Headset: None detected

Recent Failure Reports:

kisak-valve commented 5 years ago

Halo Wars don't start with Bumblebee or Intel HD only

Issue transferred from https://github.com/ValveSoftware/Proton/issues/2147. @ycharbi posted on 2018-12-27T12:31:24:

Compatibility Report

System Information

I confirm:

steam-459220.log

Symptoms

In English: -On a desktop PC with a Nvidia GTX 970 graphics card and an Intel Core i7 960 processor (without Intel HD), the game works perfectly. -With a Dell XPS 15 9550 equipped with an Nvidia GTX 960M graphics card and an Intel Core i7 6700HQ processor (with Intel HD), the game does not start (we see a black window open and close immediately). I use Bumblebee (Optimus) and I run the game with the following parameters to use the Nvidia card: LD_PRELOAD="libpthread.so.0 libGL.so.1" _GL_THREADED_OPTIMIZATIONS=1 PROTON_LOG=1 optirun %command% (I specify that the game "portal (appids = 400)" starts well with these arguments) -With a Shuttle DS57U equipped with an Intel Core I5 5005U only with an Intel HD, I have the same symptoms as the Dell XPS 15.

The three machines are under Debian Sid (The Shuttle has also been tested under Ubuntu 18.04) with Gnome 3.30.2 and up to date with a Linux 4.19.0 kernel and a Steam client in version 1543346820 (updated on 12/27/18). I tested under Wayland and Xorg.


En Français: -Sur un PC fixe avec une carte graphique Nvidia GTX 970 et un processeur Intel Core i7 960 (sans Intel HD), le jeux fonctionne parfaitement. -Avec un Dell XPS 15 9550 équipé d'une carte graphique Nvidia GTX 960M et d'un processeur Intel Core i7 6700HQ (avec Intel HD), le jeux ne se lance pas (on voit une fenêtre noire s'ouvrir et se fermer imédiatement). J'utilise Bumblebee (Optimus) et je lance le jeux avec les paramètres suivants pour utiliser la carte Nvidia: LD_PRELOAD="libpthread.so.0 libGL.so.1" _GL_THREADED_OPTIMIZATIONS=1 PROTON_LOG=1 optirun %command% (je précise que le jeu "portal (appids=400)" se lance bien avec ces arguments) -Avec un Shuttle DS57U équipé d'un Intel Core I5 5005U seulement avec une Intel HD, j'ai les mêmes symptomes qu'avec le Dell XPS 15.

Les trois machines sont sous Debian Sid (le Shuttle a également été testé sous Ubuntu 18.04) avec Gnome 3.30.2 et à jour avec un noyau Linux 4.19.0 et un client Steam en version 1543346820 (à jour au 27/12/18). J'ai testé sous Wayland et Xorg.

Reproduction

In English: Just install a raw Debian Sid with Nvidia drivers from non-free sid repository as well as bumblebee via this procedure: https://doc.ycharbi.fr/index.php/Bumblebee. After installing the Steam client via this procedure: https://doc.ycharbi.fr/index.php/Steam_linux, I install the Halo Wars game by using the "Backup and Restore Games..." function of the "Steam" menu because my ADSL does not allow you to reinstall several gigabytes of data (the game has already been downloaded beforehand and a passage of "CHECK FACTOR INTEGRITY..." indicating no problems) ... I add the launch options to the games and I execute it -> fail.

En Français: Il suffit d'installer un Debian Sid vièrge avec les pilotes Nvidia des dépôts Sid non-free ainsi que bumblebee via cette procédue: https://doc.ycharbi.fr/index.php/Bumblebee. Après installation du client Steam via cette procédure: https://doc.ycharbi.fr/index.php/Steam_linux, j'installe le jeux Halo Wars en utilisant la fonction "Sauvegarder et restaurer des jeux..." du menu "Steam" car mon ADSL ne permet pas de réinstaller à foison plusieurs gigaoctets de données (le jeu ayant déjà été téléchargé au préalable et un passage de "VÉRIFIER L'INTÉGRITÉ DES FICHIERS..." n'indiquant aucun problèmes)... J'ajoute les options de lancement au jeux et je l'exécute -> échec.

Other

I am available for any further information.

kisak-valve commented 5 years ago

Hello @ycharbi, my understanding is that optirun currently is OpenGL-only and if a game is using vulkan (via dxvk), then it does nothing.

You could try PROTON_USE_WINED3D=1 to use OpenGL. I've also heard of success using nvidia-xrun to run the entire X session on the nvidia gpu, and primus_vk is a relatively new option to try.

ycharbi commented 5 years ago

Hello @kisak-valve, I tried with the parameter you gave me. There is better. The black window goes full screen now and waits one to two seconds to close itself (or before it was in window mode and closed immediately). I also tried substituting optirun by primusrun (I confess I do not really know the real function of these commands ...). It gives the same results.

ycharbi commented 5 years ago

Hello, I re-tried today and additional messages are available in the log:

>>> Adding process 26367 for game ID 459220
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/ycharbi/.config/openvr/openvrpaths.vrpath'
Game update: AppID 459220 "", ProcID 26414, IP 0.0.0.0:0
Game update: AppID 459220 "", ProcID 26451, IP 0.0.0.0:0
Game removed: AppID 459220 "", ProcID 26451 
Exiting app 459220
No cached sticky mapping in ActivateActionSet.

I do not know if "openvrpaths.vrpath" is important for the game's operation. I'll come back to you if I have other elements.

ycharbi commented 5 years ago

Hello, I have tested on my Dell XPS 15 with Fedora 30 X11. I followed this tutorial: https://www.linuxtricks.fr/wiki/fedora-installer-les-pilotes-nvidia-valable-pour-nvidia-optimus-aussi and its work. The game is work normally. So I deduce that the problem is Intel HD (Optimus is not really fonctional with Debian).

With Fedora, the whole environment is under the Nvidia card (so there is no optirun or primusrun). This is not the case for Debian who use Intel HD for display screen: NVDA_Optimus_Overview