Persona 5 Royal

Persona 5 Royal

Not enough ratings
More FPS with DXVK
By hevyhammr
As amazing of a game Persona 5 Royal is, the optimisation on PC is rather lacklustre. This is by no means a graphically intensive game, yet due to the rendering techniques used by the developers there are massive FPS drops in areas with large crowds. In this guide I will show you how to fix this.

   
Award
Favorite
Favorited
Unfavorite
Problems with DirectX 11
The issues stem from the fact that the game uses DirectX 11 [en.wikipedia.org] as the rendering API, which is pretty old and does not take full advantage of the computing power of modern systems. However, we can remediate this by forcing the game to use the more modern Vulkan (DXVK) [en.wikipedia.org] API instead.
How to force the game to use DXVK
The process is pretty simple and involves dragging & dropping the DXVK library files to the game's directory. Below is a step-by-step guide on how to do so:

  1. Download the latest version of DXVK files from dotsuijin's GitHub page[github.com]

  2. The downloaded file will be in an archive (.gz) format. Use 7zip[www.7-zip.org] to access the archive

  3. Since P5R is a 64 bit application, you will need to open the x64 folder and grab the files from there

  4. Open the P5R's root folder by right-clicking on the game in your Steam library and selecting "Browse local files"

  5. As we need to replace the game's DirectX 11 API, copy/drag only the following files and paste them into the game's directory where the game's P5R.exe file is located: d3d11.dll & dxgi.dll

  6. Very important to avoid visual glitches in game - open up a text editor of your choice (Notepad, Notepad++ etc.) and paste the following in it: dxvk.enableAsync = true

  7. Save the file as dxvk.conf in the game's directory, the same place where you pasted the d3d11.dll & dxgi.dll files. Whilst saving make sure to select the file type as "All files", otherwise this will be saved as a regular text file and will not be read by DXVK.

If you followed all these steps correctly you can launch the game and measure your FPS. Of course the gains will differ from system to system but in general you should notice an improvement, especially in crowded areas like Kichijoji and Shibuya/Central Square.
Why DXVK and how does it work?
To put it simply - better utilisation of your computer's CPU and GPU computing capabilities. Below is a quote from Wikipedia [en.wikipedia.org] which explains this:
Originally posted by Wikipedia: Vulkan:
Vulkan is intended to offer higher performance and more efficient CPU and GPU usage compared to the older OpenGL and Direct3D 11 APIs. It does so by providing a considerably lower-level API for the application than the older APIs, that more closely resembles how modern GPUs work.

Vulkan is comparable to Apple's Metal API and Microsoft's Direct3D 12. In addition to its lower CPU usage, Vulkan is designed to allow developers to better distribute work among multiple CPU cores.
10 Comments
ShigureChang 18 Jun @ 7:28am 
It doesn’t seem to support HDR
hevyhammr  [author] 17 Jun @ 11:04am 
Hey @darthnihilist, this fix is for Windows users and I honestly do not have any idea how to help you on Linux. You may however check out the DXVK page on GitHub for help with installing on Linux via wine
darthnihilist 17 Jun @ 10:56am 
i'm on linux and i find that if i play with a controller than my computer thinks i'm doing nothing and shuts-down
hevyhammr  [author] 11 Jun @ 1:03pm 
@Xeal could you please ensure that you followed all the steps correctly?

Not sure what could be causing a crash, either you did something incorrectly, or your hardware possibly does not support Vulkan
Xeal 8 Jun @ 5:23pm 
help, i tried this and it keeps crashing the game :slimehungry:
EXTREME MILOZ 8 Jun @ 5:28am 
BRO, you're GOD dude
TROLLBOT5000 6 Jun @ 9:01pm 
I LOVE YOUUUUUU
hevyhammr  [author] 2 Jun @ 12:17am 
@Дядя Богдан thanks for pointing this out, corrected the typo
Дядя Богдан 26 May @ 10:17am 
i suspect a typo in .conf file name, should be dxvk.conf, please verify
TheAlexGET 21 May @ 10:27am 
Brooooo, you saved me, this worked EXCELLENT. Idk who you are but you're a HERO.