Mafia: Definitive Edition

Mafia: Definitive Edition

Statistiken ansehen:
Fixing the game's fps limiter
Hi all,

Figured out how to engage this game's built-in limiter. You need a copy of Mafia 3: DE to do this.

1) Start Mafia 3 DE, set a 60fps lock (or 30fps if you so wish) and save the settings. Exit the game.

2) Replace this file: Documents\My Games\Mafia Definitive Edition\Data\<ID>\profiles\temporaryprofile\profile_videosettings.pf with the one from Mafia 3 (here: %LocalAppData%\2K Games\Mafia III\Data\<ID>\profiles\temporaryprofile\profile_videosettings.pf)

3) Play Mafia: Definitive Edition and change the graphics settings as desired (I use exclusive Fullscreen, VSync off but enabled in Nvidia Control Panel, everything on High)

Note: you can't modify the profile_videosettings.pf file by hand - even with a Hex editor. The game finds it corrupted and overwrites it. A valid Mafia 3 file does work though, hence why this solution is legit.

Enjoy nice smooth 60fps at last :)
Zuletzt bearbeitet von H3llF1re; 30. Sep. 2021 um 16:53
< >
Beiträge 111 von 11
Whats the point of this? It runs at 60 fps by default.
It runs at VSync'ed 60fps with no limiter, so even though your fps counter reads 60, the experience will be jittery (always has been in this game) due to uneven frametimes. I realise that most won't care about this, but some (like me) are much more sensitive to it than others, so I was pleased to find a solution.
Zuletzt bearbeitet von H3llF1re; 1. Okt. 2021 um 9:07
Ursprünglich geschrieben von H3llF1re:
It runs at VSync'ed 60fps with no limiter, so even though your fps counter reads 60, the experience will be jittery (always has been in this game) due to uneven frametimes. I realise that most won't care about this, but some (like me) are much more sensitive to it than others, so I was pleased to find a solution.

As someone who can tell the difference between 120fps and 165fps, i assure you this game runs at 60fps.
g13ba 1. Okt. 2021 um 12:13 
Don't want to install Mafia 3: DE just for this. Can you post the file please?
Ursprünglich geschrieben von Andrius227:
As someone who can tell the difference between 120fps and 165fps, i assure you this game runs at 60fps.

I didn't say it wasn't running at 60. I said it *was* running at 60, but wasn't producing consistent frame times, resulting in the appearance of visual stuttering. You're clearly not someone who is interested in this fix, why are you even here?

Ursprünglich geschrieben von g13ba:
Don't want to install Mafia 3: DE just for this. Can you post the file please?

Yeah, don't mind doing that at all. GD link:

https://drive.google.com/file/d/1nEOX20vJHt7BH6ceIOoAwY_DKkQOoeuo/view?usp=sharing
g13ba 1. Okt. 2021 um 14:05 
Thanks!
I found instructions for how to edit the .pf files and changed m_FPS from 2 to 1.
https://www.pcgamingwiki.com/wiki/Mafia:_Definitive_Edition#Map_Extended_Mouse_Buttons
Looks like it worked, as it wasn't overwritten.
Can't tell if it's different though, because in the city it runs below 60 fps for me.
Zuletzt bearbeitet von g13ba; 1. Okt. 2021 um 14:06
Ursprünglich geschrieben von g13ba:
Thanks!
I found instructions for how to edit the .pf files and changed m_FPS from 2 to 1.
https://www.pcgamingwiki.com/wiki/Mafia:_Definitive_Edition#Map_Extended_Mouse_Buttons
Looks like it worked, as it wasn't overwritten.
Can't tell if it's different though, because in the city it runs below 60 fps for me.

Oh, cool! I hadn't seen those instructions on how to manually edit the file. Nice find.

You could tell for definite that it's working by setting m_FPS to 0, which will lock the game at 30fps.
Zuletzt bearbeitet von H3llF1re; 1. Okt. 2021 um 14:21
Err it's much easier than all this. Just tick "disable full screen optimisations" on the exe*.

This will prevent auto HDR from working but there's an alternative to the above which is to just use a specific reshade preset instead (Google it).
Zuletzt bearbeitet von neO_o_; 3. Okt. 2021 um 8:30
Ursprünglich geschrieben von neO_o_:
Err it's much easier than all this. Just tick "disable full screen optimisations" on the exe*.

This will prevent auto HDR from working but there's an alternative to the above which is to just use a specific reshade preset instead (Google it).

That was one of the many things I tried to improve this game's frametimes, and it didn't do anything for me.
I don't understand why people must complain about fixes they don't need - completely insane losers. You don't have to comment that you don't need it. Thanks for posting this.

For those looking to edit the file OP posted, I recommend Notepad++. There are other similar lightweight programs that do it as well.

Cheers OP.
Zuletzt bearbeitet von King Saxler; 17. März 2023 um 6:13
Ursprünglich geschrieben von maxpaine_11:
Ursprünglich geschrieben von H3llF1re:
Hi all,

Figured out how to engage this game's built-in limiter. You need a copy of Mafia 3: DE to do this.

1) Start Mafia 3 DE, set a 60fps lock (or 30fps if you so wish) and save the settings. Exit the game.

2) Replace this file: Documents\My Games\Mafia Definitive Edition\Data\<ID>\profiles\temporaryprofile\profile_videosettings.pf with the one from Mafia 3 (here: %LocalAppData%\2K Games\Mafia III\Data\<ID>\profiles\temporaryprofile\profile_videosettings.pf)

3) Play Mafia: Definitive Edition and change the graphics settings as desired (I use exclusive Fullscreen, VSync off but enabled in Nvidia Control Panel, everything on High)

Note: you can't modify the profile_videosettings.pf file by hand - even with a Hex editor. The game finds it corrupted and overwrites it. A valid Mafia 3 file does work though, hence why this solution is legit.

Enjoy nice smooth 60fps at last :)

I got it!!!! I have permanent fix, but you have to follow these steps this solution also works with the last of us stuttering, first off I found out that using fps limiter in nvidia control panel was making my games stutter alot, so my fix for that was
Nvidia control panel:
Fps limiter : off
Gsync: on
Vsync: on (global)
That should fix stuttering for some of you
Now for mafia 1 definitive edition the game was only made to be played at 60fps, but even when the game is locked at 60fps fullscreen it feels jittery,
Game will never be or feel smooth regardless if you unlock the framerate by disableling full screen optimization on the executive file, so here is the fix to play the game smooth at 60fps:
*Go to nvidia control panel
*Change resolution
*Change refresh rate to 60hz
*Disable gsync
*turn vsync on global
*make sure you double check if vsync is on (global) if you already had it on, because after changing the refresh rate and when i disabled gsync my system automatically revert vsync to off for some reason so make sure you turn it back on (global)
*open game using steam
No need to change executive file settings

Now in game
*Fullscreen on
*Vsync on
There you may now play the game smooth 60fps let me know it this works for you
This fix also works with the last of us pc jittery, stuttering



Tick disable full screen optimization
< >
Beiträge 111 von 11
Pro Seite: 1530 50

Geschrieben am: 30. Sep. 2021 um 16:47
Beiträge: 11