Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror's Edge (17410) #355

Open
unlimitedbacon opened this issue Aug 24, 2018 · 37 comments
Open

Mirror's Edge (17410) #355

unlimitedbacon opened this issue Aug 24, 2018 · 37 comments
Labels
Game compatibility - Unofficial Games not expected to work without issues

Comments

@unlimitedbacon
Copy link

This game has been running great under Wine for many years. It runs well with Proton, too. Only issue is that it lags during some sequences when you have PhysX enabled.
https://appdb.winehq.org/objectManager.php?sClass=version&iId=21159

Steam System Info

@tingvarsson
Copy link

Can confirm.
SysInfo

@Frans-Willem
Copy link

Can confirm too
Sys info

@pprotonrep
Copy link

I had some issues with the resolution during first start (#141) but otherwise it works very well.

@ghost
Copy link

ghost commented Aug 24, 2018

Also fine on my Debian testing.

@kisak-valve kisak-valve added the Whitelist Request Community tested games to be whitelisted in Steam label Aug 24, 2018
@kisak-valve kisak-valve changed the title [Whitelist] Mirror's Edge [Whitelist] Mirror's Edge (17410) Aug 24, 2018
@kforney
Copy link

kforney commented Aug 24, 2018

Can also confirm on Fedora 28. Only problems were PhysX and the resolution being too low on first start.

@diegogangl
Copy link

Can confirm on KDE Neon (Ubuntu 16.04). I also got low resolution/settings on the first run.

Specs:

  • GTX 980
  • Nvidia drivers 396.51
  • Kernel 4.15.0

@kakra
Copy link
Contributor

kakra commented Aug 25, 2018

Game experience is not very good for me with Proton. The games runs fine, yes, but movement is sluggish and it looks like FPS are very inconsistent. This doesn't happen with my own build of wine which includes some bits of Proton and Staging (in the branches):
https://github.com/kakra/wine

So I guess it's either related to Proton being based on quite old Wine 3.7, or some of the Staging cherry-picks I'm using. In my own Wine build, I didn't include the full-screen hacks, yet, so this game is somewhat complicated to start (because the game minimizes on start and would freeze when you click it, you can get around this with alt+tab'ing to the game).

PhysX is turned off.

I see similar behavior in other games when comparing both implementations.

@swick
Copy link
Contributor

swick commented Aug 25, 2018

Performance isn't good but it works. Much better experience with gallium nine.

OpenGL renderer string: AMD Radeon(TM) HD 8800 Series (PITCAIRN, DRM 3.26.0, 4.18.0, LLVM 6.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.6

@edn9
Copy link

edn9 commented Aug 25, 2018

Work with lag for me even in the low, maybe because my hardware.

Arch Linux
Kernel 4.18.3
Proton 3.7
bspwm 0.9.5
CPU Intel Core i3-2350m @ 4x 2.3GHz
RAM 4gb
GPU Intel(R) HD Graphics 3000

@TomJansen
Copy link

TomJansen commented Aug 26, 2018

For me the cursor in the Steam Overlay does not show up, but that is the only thing. See #678

@andrebadaia
Copy link

Confirmed.

Distro: Linux Mint 19 Tara
Processor: AMD Ryzen 7 1700
GPU: GTX 1070, Nvidia proprietary driver 396.54
RAM: 32GB
Kernel (custom) - 4.17.14 (optimized for Ryzen)
Resolution: 1920x1080
Proton 3.7-3

@DoubyCz
Copy link

DoubyCz commented Aug 31, 2018

Confirmed, works great incl. nvidia PhysX supoort SysInfo

@kakra
Copy link
Contributor

kakra commented Aug 31, 2018

@DoubyCz Please check the scene when first meeting her sister... Does it still work great when the glass shatters?

@geraintwhite
Copy link

geraintwhite commented Sep 1, 2018

I get a crash every time launching the game as soon as the first loading chapter finishes. It happens both with PhysX turned off and on.

https://gist.github.com/grit96/ff9f43bb8d42a4a86dd1bd9ac9b7d9f1

@hswhite33
Copy link

Gave this a go because so many people had reported it working flawlessly, and I had a very different experience:

  • Black screen on launch - in order to get it to launch correctly I have to switch to a different desktop until I hear the intro start, then switch back
  • Performance not great (though it's a while since I played it in Windows so I can't really compare)
  • Mouse doesn't get captured properly so I can only turn so far to the right, and if i move too far left the cursor goes onto my other monitor
  • If the window loses focus, I get a black screen with a tiny bit of game in the top left corner (image), which is completely unresponsive (I have to kill it with xkill, it doesn't respond to my window manager's window close events)
    • if I do this during a cutscene, it seems to correct itself when the cutscene ends
    • It's worth noting that this is the case with most of the games I've tried running in proton so far

System Info

Proton 3.7-5 Beta

steam-17410.log

@kakra
Copy link
Contributor

kakra commented Sep 6, 2018

@hswhite33 Could you test this build: https://github.com/kakra/wine/releases/tag/wine-proton-3.7-unofficial
(you need to be familiar with how to replace Proton with a custom build)

@hswhite33
Copy link

@kakra I tried out your build - the performance is noticeably improved and the mouse capture issue seems to be fixed. All of the other issues I mentioned are still present though. Great work!

@kakra
Copy link
Contributor

kakra commented Sep 6, 2018

I'm having a similar issue: The game starts in minimized mode 99 out of 100 times. I need to hold alt key and press tab twice to focus the window into foreground as soon as sound starts. I usually do not leave the focus so I never noticed your other issue. Currently I know no way around it. I think both issues have a very similar root cause in wine.

@kisak-valve
Copy link
Member

Mirror's Edge™

Issue transferred from #1336.
@NTMan posted on 2018-09-08T21:01:46:

Whitelist Request

  • Name of the game to be whitelisted: Mirror's Edge™
  • Steam AppID of the game: 17410

System Information

  • GPU: AMD Vega 56
  • Driver/LLVM version: 18.2.0-rc5/7.0.0
  • Kernel version: 4.19.0-0.rc2.git2.1
  • Link to full system information report as Gist
  • Proton version: 3.7-6 Beta

I confirm:

  • that pressing the Play button in the Steam client is sufficient.
  • that runtime config options
    are necessary to run the game.
  • that no workarounds other than the mentioned ones are necessary.

Issues

  • I haven't experienced any issues.
  • There are no issues left open for this game.
  • Although I consider the gaming experience equal to Windows there are
    remaining issues:

May be insufficient FPS for comfort playing in some scenes on high settings and 4K

screenshot from 2018-09-09 01-55-27

@kisak-valve kisak-valve mentioned this issue Sep 8, 2018
6 tasks
@kakra
Copy link
Contributor

kakra commented Sep 8, 2018

@hswhite33 Would you like to retry this build which is Proton 3.7 rebased to Wine 3.12 plus some more performance patches:
https://github.com/kakra/wine/releases/tag/wine-proton_3.7-3.12-unofficial

@hswhite33
Copy link

Hi @kakra , the same issues are still present with this build. Performance is about the same as with your previous build (averaging around 55-60fps)

@hypothermic
Copy link

Can confirm. Worked out of the box for me.
Sys info

@kakra
Copy link
Contributor

kakra commented Sep 10, 2018

@hswhite33 I probably cannot fix the remaining problems because I don't know enough about the inner workings of wine, or how the full-screen hack works. But I think I'm seeing the same issues:

  1. Loosing focus hides the window and freezes the game (sound may continue to play). Restoring from this state may end up in a tiny, icon-sized window in the top left corner, maybe even with screen activity still going on. The rest of the screen stays black/frozen.
  2. Game starts minimized and out of focus (no window has focus), Alt+Tab can fix this but only when you Alt+Tab directly to the game, otherwise results in 1.

Is this it?

I think, mouse capture was fixed already. And I cannot see any issues with the cutscenes here as long as you do not unfocus the game window.

Many games suffer from 1 so it's a more general problem. Very few games show issue 2 behavior, one other is Dishonored (at least in earlier Wine versions, usually it works now). I suspect this has to do with splash logo windows shown by some games on the desktop during startup, and then wine doesn't catch the switch to fullscren later correctly, i.e. Mirror's Edge shows such a loading screen before going fullscreen.

@hswhite33
Copy link

@kakra Yes that summarizes my experiences. The mouse capture issue was fixed in your build; I haven't tried the 3.7-6 beta build to see if it's fixed there.

I've actually configured my window manager to force all wine windows to start in fullscreen on the correct monitor because in a couple of other games having them start as floating/tiling windows and then manually moving them was causing your issue 1. too.

@BlitzKraft
Copy link

@kakra: Is there a workaround for the icon sized game window? I am facing this issue exactly as described by hswhite33. However, their fix doesn't work for me. Losing focus still makes the game icon sized.

I understand a fix might take some time. Looking for some clue to skip having restart a game just because it lost focus.

@kakra
Copy link
Contributor

kakra commented Sep 20, 2018

I think this is up to the experts from Valve because I don't understand the code yet behind the full-screen hacks. Maybe just try not to loose focus from the game and it should work (I completed the story that way, so it's possible, it crashed just once). This problem also occurs with vanilla wine here.

@kakra
Copy link
Contributor

kakra commented Sep 23, 2018

@BlitzKraft @hswhite33 Here's a new build by me which should fix the issues:
https://github.com/kakra/wine/releases/tag/wine-proton_3.7-3.16-unofficial-1

@ghost
Copy link

ghost commented Dec 14, 2018

@kisak-valve

Whitelist Request

  • Mirror's Edge
  • 17410

System Information

  • GPU: RX 570
  • Driver/LLVM version: Mesa 18.3 & LLVM 7
  • Distro: Sabayon
  • Link to full system information report as Gist:
  • Proton version: 3.16-5

I confirm:

  • [✔] that pressing the Play button in the Steam client is sufficient.
  • [✔] that no workarounds other than PROTON_* env variables are necessary.

Issues

  • [✔] I haven't experienced any issues.
  • [⌛] There are no issues left open for this game. Some have problems, some don't have problems. Needs more reports with the latest proton version.

@hswhite33
Copy link

Confirming that of the issues I listed here, the only one that is fixed with Proton 3.16-5Beta is the mouse capture. This game is not whitelist-ready.

System info

@kakra
Copy link
Contributor

kakra commented Dec 14, 2018

@hswhite33 Do all those issues still occur in my version of wine-proton?
https://github.com/kakra/wine-proton

If some are fixed, we could try to isolate the patches that solve the problems and suggest those to Valve for inclusion into official Proton.

I know at least one patch in my tree that fixes an issue regarding window management.

@Arucard1983
Copy link

A much better solution to gain better framerate:
Install dgVoodoo2 WIP, which also translates DirectX 9 to 11, where in turn DXVK takes the rest (Vulkan).
Then override ddraw, d3d9, d3d8 on winecfg to complete the configuration. (It may need to open the Registry Editor to fix "ddrawex" to "ddraw" on DllOverrides.)
Use dgvoodoo2cpl.exe to complete the configuration.

The video are not mine, but shows that the game will be more fluid, as the game engine had finally a multithreading graphic pipeline (delivered by dgvoodoo2 + DXVK ).

https://www.youtube.com/watch?v=GgGMCTLr1Iw

@jonlap
Copy link

jonlap commented Feb 16, 2020

Briefly tested this before uninstalling, with proton 5.0-2, mesa 19.3.3 and rx480. While technically everything works and I get steady 60fps, gameplay does not feel as fluid as I remember it being when I played this game on PS3. It's more or less playable though but obviously there's some performance issues left. No logs for now, sorry, but I'll retest it properly later.

@soredake
Copy link
Contributor

Game works completely fine with proton 5.0-2.

@aufkrawall
Copy link

I've tested this with wine-staging, but should work similarly for Proton.

To fix GPU PhysX performance, install a more recent PhysX version via winetricks/protontricks and copy and replace the dlls from

drive_c/Program Files (x86)/NVIDIA Corporation/PhysX/Common
to
/drive_c/Program Files (x86)/Steam/steamapps/common/mirrors edge/Binaries" and "/drive_c/Program Files (x86)/Steam/steamapps/common/mirrors edge/Binaries/PhysXLocal.

This way, I'm having no more frame rate drops with shattered glass and GTX 1070.

@Bitwolfies
Copy link
Contributor

Bitwolfies commented Mar 24, 2023

I've tested this with wine-staging, but should work similarly for Proton.

To fix GPU PhysX performance, install a more recent PhysX version via winetricks/protontricks and copy and replace the dlls from

drive_c/Program Files (x86)/NVIDIA Corporation/PhysX/Common to /drive_c/Program Files (x86)/Steam/steamapps/common/mirrors edge/Binaries" and "/drive_c/Program Files (x86)/Steam/steamapps/common/mirrors edge/Binaries/PhysXLocal.

This way, I'm having no more frame rate drops with shattered glass and GTX 1070.

How exactly did you get this to work? I installed physx with protontricks into the prefix, then tried deleting all the folders in game, which crashes on launch, I then replaced all the files in game with the ones from the protontricks download, crash. I even tried moving the nvcuda.dll from staging since valves is still stubbed, and it still crashed.

DXVK_ENABLE_NVAPI=1 and PROTON_HIDE_NVIDAGPU=0 are toggled.

Edit: removing the files and ONLY having the included physx runtime installed allows the game to work with the files deleted, albeit at the same awful fps. I guess some sorta regression happened.

This issue also somehow copies itself to my clipboard, is that a steam feature?

General protection fault!

History: Address = 0x7b011297 (filename not found) [in C:\windows\system32\kernelbase.dll]
Address = 0x18ade3c (filename not found) [in Z:\home\bitwolf.local\share\Steam\steamapps\common\mirrors edge\Binaries\MirrorsEdge.exe]
Address = 0x145b6ae (filename not found) [in Z:\home\bitwolf.local\share\Steam\steamapps\common\mirrors edge\Binaries\MirrorsEdge.exe]
Address = 0x401378 (filename not found) [in Z:\home\bitwolf.local\share\Steam\steamapps\common\mirrors edge\Binaries\MirrorsEdge.exe]
Address = 0x40170c (filename not found) [in Z:\home\bitwolf.local\share\Steam\steamapps\common\mirrors edge\Binaries\MirrorsEdge.exe]
Address = 0x13113ae (filename not found) [in Z:\home\bitwolf.local\share\Steam\steamapps\common\mirrors edge\Binaries\MirrorsEdge.exe]
Address = 0x7b62ebd0 (filename not found) [in C:\windows\system32\kernel32.dll]
Address = 0x7bc5dc77 (filename not found) [in C:\windows\system32\ntdll.dll]
RtlCreateUserThread() Address = 0x7bc5e420 (filename not found) [in C:\windows\system32\ntdll.dll]

@Tobe95
Copy link

Tobe95 commented Jul 8, 2023

There's something very strange going on with performance on the Jackknife level. The first time you enter the sewer passage, FPS and frametime will be much better than on subsequent visits.

This seems to be related to the shadercache, so I'm not sure if the issue is with Proton, DXVK or rather Mesa though...

If you delete/rename the ME shadercache folder in $HOME/.steam/steam/steamapps/shadercache/17410, performance will be fine:

20230708215302_1

But if you return to the main menu and reload the Checkpoint again, performance is significantly worse from then on without any obvious reasons:

20230708215330_1

I suppose there's a problem with shader compilation or how they are being loaded once compiled, restarting the game does not fix the issue. This has been the case with Proton 7.0/8.0/Experimental (I haven't tested older versions).

Steam OS 3.4.8 (Steam Deck)
Proton Experimental 8.0-20230705b

Not sure if the log is of any use to be honest...

steam-17410.log

@kisak-valve kisak-valve added Game compatibility - Unofficial Games not expected to work without issues and removed Whitelist Request Community tested games to be whitelisted in Steam labels Jul 8, 2023
@kisak-valve kisak-valve changed the title [Whitelist] Mirror's Edge (17410) Mirror's Edge (17410) Jul 8, 2023
@ahydronous
Copy link

ahydronous commented Nov 24, 2023

Game doesn't detect Xbox controller running on NixOS 23.05, with xone driver on Xbox Wireless dongle.

Proton Experimental, 8.0-4 and 7.0-6 all do not enable the controller.

Controller works fine in other games.

Aside from that (and the PhysX framedrops), the game works swimmingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game compatibility - Unofficial Games not expected to work without issues
Projects
None yet
Development

No branches or pull requests