Skip to content

Commit

Permalink
[util] Limit Dead Space to 60fps and fix vsync
Browse files Browse the repository at this point in the history
https://www.pcgamingwiki.com/wiki/Dead_Space#Issues_fixed

The game has mouse acceleration and physics issues above 60 FPS.

Also the game locks to 30 FPS using the built-in vsync. 
Setting presentInterval to 1 blocks this and the game continues to run at 60 FPS
  • Loading branch information
Trevonn authored and misyltoad committed Jul 7, 2022
1 parent 913129d commit 4a0a9d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,13 @@ namespace dxvk {
{ "d3d9.memoryTrackTest", "True" },
}} },
/* Dead Space uses the a NULL render target instead
of a 1x1 one if DF24 is NOT supported */
of a 1x1 one if DF24 is NOT supported
Mouse and physics issues above 60 FPS
Built-in Vsync Locks the game to 30 FPS */
{ R"(\\Dead Space\.exe$)", {{
{ "d3d9.supportDFFormats", "False" },
{ "d3d9.maxFrameRate", "60" },
{ "d3d9.presentInterval", "1" },
}} },
/* Halo CE/HaloPC */
{ R"(\\halo(ce)?\.exe$)", {{
Expand Down

7 comments on commit 4a0a9d6

@RareMv
Copy link

@RareMv RareMv commented on 4a0a9d6 Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the best take on Dead Space 1.

  1. In-game Vsync is double buffered. So it doesn't lock FPS to 30 fps, it locks FPS to half the monitor's refresh rate. Still bad overall, but it would be nice to clarify the commit description.
  2. Mouse look is slightly iffy overall, but it's not more iffy above 60. Finished the game with DXVK earlier this year, EVERYTHING works perfectly up to 144 Hz. The fleshy patches of floor have more sensible mouse acceleration, but that happens regardless of framerate.

Please don't lock the game at 60 FPS for new players. It's glorious at 120-144.

@K0bin
Copy link
Collaborator

@K0bin K0bin commented on 4a0a9d6 Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EVERYTHING works perfectly up to 144 Hz. The fleshy patches of floor have more sensible mouse acceleration, but that happens regardless of framerate.

Physics break at frame rates higher than 60 in the beginning of the game.

@RareMv
Copy link

@RareMv RareMv commented on 4a0a9d6 Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Absolutely nothing breaks at 120 fps throughout the entire game. Finished the game with DXVK 1.9 (I think, whatever was latest at the time) in February 2022 on Windows 11 on an AMD GPU.

@K0bin
Copy link
Collaborator

@K0bin K0bin commented on 4a0a9d6 Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I played it a few months before that and couldnt progress shortly because of broken physics.

Here's what happens: https://youtu.be/RRRPkSkkdAQ?t=271

Just google "Dead Space door bug" and you'll find tons of guides telling people to lock the game to 60fps to fix this issue.

There's also other bugs. The womans hair physics (forgot the name) can also completely break after the shuttle crashes into the Ishimura in the intro. I specifically remember that because I spent hours trying to debug it, thinking it was a DXVK bug when in reality it was just the game being broken.

If you don't run into those issues (which is totally possible) you can disable vsync and the frame limiter with a dxvk config file. For everyone else, this is the best thing we can do to ensure a solid experience out of the box.

@vlad54rus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my play-testing - various physics and game-breaking glitches happen above ~200 fps. It's safe to increase limit to at least 150.

@K0bin
Copy link
Collaborator

@K0bin K0bin commented on 4a0a9d6 Jan 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PCGamingWiki has an issue that's only fixed by locking to 60. I'd rather not risk breaking it. You can unlock the frame rate using the DXVK config file.

@vlad54rus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, i guess it's time to update PCGamingWiki :)

Please sign in to comment.