protonscr

[d3d9] Mafia II Classic Physx effects stop working on chapter change

dxvkclosed game bug
doitsujin/dxvk#4858 · opened 2025-04-20 by rrPKrr · updated 2025-04-20 · 2 comments · github
RrrPKrr 2025-04-20 github

As is the case for many dx9 games DXVK does absolute wonders for Mafia 2 Classic as well. It completely eliminates stutters for me even when Physx set to high. Pure magic. No single hiccup.

But it seems like the Physx effects stop working on chapter change, and you can turn them back On only by restarting the game.

I wonder if it possible for DXVK to adress that issue, and reinitialize Physx on chapter change.

To be clear this is NOT the issue with DXVK, and the same behavior can be observed in vanilla game as well. But maybe this problem is in the scope of DXVK project and could be fixed in future versions of DXVK?

RrrPKrr 2025-04-20 github

P.S. To reproduce this issue:

  1. Set Physx to Medium or High and restart the game.
  2. Go to Extras > Benchmark.
  3. Notice how many Physx debries are being generated on the ground.
  4. Wait for the Benchmark to complete. Do not press ESC during the Benchmark.
  5. After the Benchmark is complete, run the Benchmark again (Extras > Benchmark) without exiting the game.
  6. Notice how debries aren't being generated anymore.
KK0bin maintainer 2025-04-20 github

To be clear this is NOT the issue with DXVK, and the same behavior can be observed in vanilla game as well. But maybe this problem is in the scope of DXVK project and could be fixed in future versions of DXVK?

In that case there isn't really anything we can do. As far as I'm aware, DXVK doesn't interact with PhysX at all and from the DXVK POV the application just puts some data into a buffer.

Nothing extracted yet.