Skip to content

Sonic Generations (71340) #380

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

Open
pprotonrep opened this issue Aug 24, 2018 · 41 comments
Open

Sonic Generations (71340) #380

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

Comments

@pprotonrep
Copy link

Sonic Generations seems to work quite well (controller support, visuals, gamesaves, etc), besides from very broken, annoying audio after the intro videos.

  • Ubuntu 18.04.1 LTS (64 bit 4.15.0-33-generic)
  • GeForce GTX 1070/PCIe/SSE2 (396.54)
  • Proton 3.7 (default configuration)

System information from steam

@kisak-valve kisak-valve added the Game compatibility - Unofficial Games not expected to work without issues label Aug 24, 2018
@diegogangl
Copy link

This one is nearly unplayable for me. Besides the broken audio:

  • There are some big framedrops when boosting
  • The game sometimes locks up when going in or out of a stage or menu, also I got a lock for several seconds on Green Hill act 1
  • The buttons on my gamepad (Genius Blaze 3) are switched (A is X, Y is B, etc.)

My System:

  • GTX 980
  • Nvidia drivers 396.51
  • Kernel 4.15.0
  • Ubuntu 16.04 (KDE Neon)

@BlazeKl
Copy link

BlazeKl commented Aug 25, 2018

The audio issue is caused by the Esync patches in proton, i think there is a way to disable but you will lose a lot of performance. Though the game itself crashes a lot in windows too.

@romulasry
Copy link

romulasry commented Aug 25, 2018

Latest beta of Proton (3.7-4 Beta) has good performance now (the DXVK 0.70 update) but the sound issue is still there.

@zfigura
Copy link

zfigura commented Aug 25, 2018

Depending on the game, esync may not offer a noticeable benefit anyway.

Regardless, can anyone experiencing this bug please attach logs with +esync,+server,+pid,+timestamp,+seh, ideally both with esync enabled and disabled? (If you're not sure how to collect logs, please see the README.)

@pprotonrep
Copy link
Author

pprotonrep commented Aug 25, 2018

@zfigura some logs when running with 3.7-3:
steam-71340-esync.log.tar.gz

steam-71340-noesync.log.tar.gz

Thanks for looking into this!

@pprotonrep
Copy link
Author

On a very subjective note: besides the audio i wouldn't say (no)esync had a big impact on performance.

@pprotonrep
Copy link
Author

and here again with 3.7-4:

steam-71340-esync-37-4.log.tar.gz
steam-71340-noesync-37-4.log.tar.gz

I didn't experience this on my first report, but the esync version hangs on exit and i have to kill the process (you can see it at the end of the logs).

@zfigura
Copy link

zfigura commented Aug 25, 2018

Thanks. It looks like this game is one of those that relies on PulseEvent(), which is a known insufficiency of esync. The best solution here is probably just to disable esync; generally (as here) games that use PulseEvent() are old enough that they won't gain anything from esync anyway.

I may be looking into ways to improve the implementation of PulseEvent(), but ultimately it is a horribly broken API and difficult to correctly implement on top of eventfd.

@pprotonrep
Copy link
Author

pprotonrep commented Aug 25, 2018 via email

@romulasry
Copy link

zfigura/wine#10

@juliotux
Copy link

The problem is related to the esynce and setting PROTON_NO_ESYNC=1 %command% as the launch option, the game runs perfectly and no issue was noted here.
System Info

@romulasry
Copy link

romulasry commented Oct 14, 2018

3.16-1 Proton Beta I get no sound. With PROTON_NO_ESYNC=1 %command% or just nothing.

@juliotux
Copy link

Here, testing with Proton 3.16-1 Beta, the sound keeps working fine.

@romulasry
Copy link

Found out my system turned down the sound. It is having the same issue with esync off though.

@aFoxNamedMorris
Copy link

aFoxNamedMorris commented Oct 17, 2018

Enabling PROTON_NO_ESYNC fixes audio for me on Proton 3.16-1 and 3.16-2.

@oblitum
Copy link

oblitum commented Nov 1, 2018

On Intel HD 7700K CPU, it doesn't start.

@oblitum
Copy link

oblitum commented Nov 2, 2018

On Intel HD 7700K CPU, it doesn't start.

Game now is running fine. I was hitting this issue ("The detected configuration does not match your current hardware. Please re-run the configuration tool."), to fix I had to remove all .cfg files from game's directory (rm "/mnt/seagate/Steam/steamapps/common/Sonic Generations/*.cfg", and then run the game configuration tool again. Game started with success but with severe audio issues, which were fixed with the mentioned PROTON_NO_ESYNC=1.

@romulasry
Copy link

Anyone try the latest beta? Proton 3.16-6 beta?

@oblitum
Copy link

oblitum commented Dec 22, 2018

@romulasry still working as before for me. Didn't remove PROTON_NO_ESYNC=1 though, see comment above.

@jonbitzen
Copy link

I'm able to play the game on 3.16-6 beta as long as I use "PROTON_NO_ESYNC=1 %command%" in the launch options

@NoXPhasma
Copy link
Contributor

With Proton 4.2-3 it's still needed to disable Esync, but then it runs perfectly fine.

Log (with Esync): steam-71340.log
Log (without Esync): steam-71340_NOESYNC.log
Sysinfo: https://gist.github.com/NoXPhasma/f842039588ff89403b66abae978a4882

@PSebs
Copy link

PSebs commented Oct 26, 2019

The sound issue is present for me when fsync is enabled. Had to disable both esync and fsync. The game performance chugs without fsync though.

@Ruedii
Copy link

Ruedii commented Jan 4, 2020

This is a clear issue with esync and the audio. Very clear A/B test results on that one.

That means we can mark that as good workaround towards whitelisting.

Performance is still unacceptable, though. I'll have to look further on that.

I heard you can fix performance issues by enabling DXVK9 but I haven't tested it myself. I'll get back later on that.

@Frontrider
Copy link

Frontrider commented Feb 21, 2020

with esync disabled I can measure 15 fps with dxvk. There are games I can play with 15 fps, but sonic is not one of them.

Tinkering with pulseaudio latency is a partial solution I could find, I'll need to do more testing.

@soredake
Copy link
Contributor

Proton 5.13-1, game still broken without disabling {e,f}sync.

@romulasry
Copy link

Still broken in Proton Experimental. See issue above.

@kisak-valve kisak-valve changed the title Sonic Generations sound issues (71340) Sonic Generations (71340) Jul 27, 2021
@kisak-valve
Copy link
Member

Sonic Generations "Game files either missing or corrupt please reinstall"

Issue transferred from #5021.
@dhalucario posted on 2021-07-27T19:48:27:

Compatibility Report

  • Name of the game with compatibility issues: Sonic Generations
  • Steam AppID of the game: 71340

System Information

  • GPU: Nvidia GTX 1050 Ti (a friend tried with AMD Radeon RX 570)
  • Driver/LLVM version: OpenGL version string: 4.6.0 NVIDIA 470.57.02 (my friends: OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.1.5)
  • Kernel version: 5.13.4-200.fc34.x86_64
  • Link to full system information report as Gist: https://gist.github.com/dhalucario/b809e5c2e8265e2feb48cbbba5735362
  • Proton version: 1627075293 experimental-6.3-20210723b

I confirm:

  • that I haven't found an existing compatibility report for this game.
  • that I have checked whether there are updates for my system available.

steam-71340.log.gz

Symptoms

The game seems to launch but gets stuck at "Game files either missing or corrupt please reinstall"
grafik

The issue persists even after verifying the game files and running the ConfigurationTool.exe in the games folder.
We tried deleting the config files too.

Reproduction

Run the latest Fedora 34
Install steam from RPMFusion

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf update --refresh --best --allowerasing
sudo dnf install steam

Install the game on steam: https://store.steampowered.com/app/71340/Sonic_Generations_Collection/
Run it from steam

@ASOwnerYT
Copy link

Any fixes for this? I'm having the exact same issue as above where I get the error "Game files either missing or corrupt please reinstall".

@romulasry
Copy link

Same issue latest Proton Experimental.

@Canar
Copy link

Canar commented Dec 31, 2021

https://steamcommunity.com/app/71340/discussions/0/527273452869957799/

Applying this registry patch to Sonic Generations got it to work on my setup.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sega]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sega\Sonic Generations]
"locale"="en-us"
"SaveLocation"="%UserProfile%\\Saved Games\\Sonic Generations"

Presuming you have wine installed as well, you can apply this registry patch with

WINEPREFIX=/media/misc/games/steam/steamapps/compatdata/71340/pfx wine64 regedit

or so, substituting for your proper steam folder.

@hifihedgehog
Copy link

hifihedgehog commented Mar 17, 2022

This was temporarily fixed with the general release stock image of SteamOS on the Steam Deck but is broken yet again if you try installing Sonic Generations after factory restoring from an image with the latest updates applied.

@SeongGino
Copy link

I've never encountered the above on Arch, but I will say (either vanilla or modded) that Generations has some odd audio skipping that seems all but completely disconnected from actual game stuttering/shader caching (which isn't much). Noted on latest (as of April 2nd 2022) Experimental and GE_7-10.

@Ruedii
Copy link

Ruedii commented Apr 5, 2022 via email

@SeongGino
Copy link

Audio stuttering is often due to buffer underflow in Pulse or equivalent. I might file a suggestion that Proton's driver adjust it's stream parameters to prevent this instead of relying on default settings in the system.

Even on Pipewire?
To be clear, it doesn't seem to affect the sound effects; just the music. But now that I listen, it may or may not be related to/happening around loop points in the track.

Though now that I say this, it seems inconsistent so I'm still hesitating to call it an issue.

@Ruedii
Copy link

Ruedii commented Apr 6, 2022 via email

@ASOwnerYT
Copy link

ASOwnerYT commented Apr 30, 2022

Replying to #380 (comment)

This fixed it for me.
For most people the command should be:
env WINEPREFIX=/home/USERNAME/.steam/steam/steamapps/compatdata/71340/pfx/ regedit
(just need to subsitute USERNAME with your username)

Also I can confirm there are audio issues, hope it gets fixed :)

@blastermaster77
Copy link

blastermaster77 commented Jun 9, 2022

Poor performance on steam deck when CPU SMT is enabled, when disable the frame rate is way better could this be implemented in the game? here are videos with smt enabled and disabled.
With SMT enabled:

2022-06-09.02-38-10.mov

With SMT disabled:

2022-06-09.02-39-30.mov

Hope this help to get the better experience on sonic generations. Hope there is a way to implemented. 🙃

@RealBinsky42
Copy link

RealBinsky42 commented Aug 6, 2022

Replying to #380 (comment)

Hi there, I've tried using this registry fix to resolve the "Game files either missing or corrupt please reinstall" error on my new factory-fresh Steamdeck, when I load the regedit program I can see that the registry key for Sonic Generations and its saved games location has been added successfully, but I'm still getting the same error. I've tried uninstalling/reinstalling at least five times now, playing with the configuration tool, all the usual steps that people seem to reference, but nothing has worked yet.

I also posted on the Steam discussions page in a bit more depth: https://steamcommunity.com/app/71340/discussions/0/3453716885201797215/

Does anybody happen to have any additional suggestions or tips for getting Sonic Generations to get past this error? I'm really curious if anybody with a factory-fresh Steam Deck has been able to get the program to successfully install and load within the past week or two.

@trinukso
Copy link

The game don't start with proton-experimental. Thanks.
Captura desde 2023-08-10 10-32-20

@Robmike27
Copy link

Operating System: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12
Kernel Version: 6.6.10-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 23.4 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 980/PCIe/SSE2
Manufacturer: ASUS
Product Name: All Series

Running the game with proton experimental tells you to re-run the configuration tool. When attempting to run the tool it will not start and immediately crash.
experimental-steam-71340.log

Switching to proton 7 will allow it to only run once during the setup process but never again.
proton-7.0-steam-71340.log

Finally with proton 6 I was able to run it with both the setup script and normally through steam.
proton-6.3-steam-71340.log

Switching back to experimental and running the game after using the config tool with proton 6 still says to re-run the config tool.
steam-71340.log

@coffincolors
Copy link

I know it's been a minute but has there been any progress on the PulseEvent() handling with esync enabled? Just wondering because Winlator on Android has been able to successfully boot this game and switching esync on and off is a night and day performance difference, even with D3D11 mod. I'm talking 60fps versus 10fps. Happy to contribute to the efforts, I want to learn!

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