LIGHTNING RETURNS: FINAL FANTASY XIII

LIGHTNING RETURNS: FINAL FANTASY XIII

View Stats:
Phoenix 13 Sep, 2023 @ 9:25am
2
2
Minimizing shader stutter with DXVK-gplasync
Howdy,

I spent roughly a couple weeks trying to optimize LR on my buddy's account and figured it was worth sharing the end results.

Lightning Returns has CRAZY shader stutter, much of which can be minimized with DXVK. DXVK "translates" DirectX to Vulkan, which works a lot better with newer hardware. Additionally, with asynchronous shader compilation, any briefly "missing" shaders just won't appear for a split second instead of hanging up your game for a couple seconds. This can range from a mild distraction to a major improvement simply as a lot of shaders are compiled offscreen when moving through areas.

DXVK is still maintained but lacks async, DXVK async is no longer maintained and behind. We are going to use DXVK-gplasync as it is still maintained and has async.

Ok enough talking here's what you do:

1. Download the latest release of DXVK-gplasync here:
https://gitlab.com/Ph42oN/dxvk-gplasync/-/releases

For me, the latest release was 2.3-1.

2. Extract the zip folder. Go to dxvk-gplasync-(version) > x32. Copy "d3d9.dll"

3. Go to your Lightning Returns install folder, typically in SteamLibrary > steamapps > common > Lightning Returns - Final Fantasy XIII. Paste the file in there.

4. Create a text file called "dxvk.conf" in that same directory. Add the following three lines to the file (without the quotes):
"dxgi.syncInterval = 1
dxvk.enableAsync = true
dxgi.tearFree = Auto"

And that's it! If you want to ensure that it's actually working follow step 5 to enable the overlay.

5. Open Windows Settings. Go to System, then About, then Advanced System Settings in blue under Device Specifications. This will open the Advanced tab, click on Environmental Variables.

6. Click "New". In Variable name, type "DXVK_HUD". In variable value, type "devinfo,fps". Click Ok/ apply three times to apply the changes, you will now have an overlay in the top left hand corner of the game.

If this works for you then thank god cause this game is a nightmare to run smoothly otherwise. Oh and feel free to gift me a copy of this game so I can stop library sharing it from my pal love you thanks.
Last edited by Phoenix; 11 Dec, 2023 @ 3:36pm
< >
Showing 1-15 of 15 comments
Eli Parker 21 Sep, 2023 @ 8:14am 
bump, this should be on the pcgamingwiki
Kuroh 23 Sep, 2023 @ 3:10am 
Stutter is almost gone for me, I think the only problem left is asset streaming when traversing areas
Emerion 2 Oct, 2023 @ 11:46am 
This sadly didn't work for me, on the contrary now my textures flickers and they get completely black at random. I really don't know what I'm doing wrong tbh
Phoenix 2 Oct, 2023 @ 12:06pm 
Originally posted by Emerion:
This sadly didn't work for me, on the contrary now my textures flickers and they get completely black at random. I really don't know what I'm doing wrong tbh
a black texture indicates it couldn't be loaded in time, so it just *isn't*. As you play the game they'll be cached and won't flicker again. The alternative is the games standard frame drops.

What FPS are you getting, when does it drop, and what is your rig?
Emerion 4 Oct, 2023 @ 11:41am 
Originally posted by Phoenix:
Originally posted by Emerion:
This sadly didn't work for me, on the contrary now my textures flickers and they get completely black at random. I really don't know what I'm doing wrong tbh
a black texture indicates it couldn't be loaded in time, so it just *isn't*. As you play the game they'll be cached and won't flicker again. The alternative is the games standard frame drops.

What FPS are you getting, when does it drop, and what is your rig?
I have an Nvidia RTX 4070, Intel Core I7 and 32g RAM. I never had an issue with FPS, it's just that every time I enter a new zone or speak with someone/enter battle, some textures goes black for an instant, then for a while everything goes back to normal and then it happens again. Too bad cause I already noticed the difference with the stutters since they're almost reduced to zero (this patch works great with that). Do I have to change some graphic setting or something like that maybe?
Phoenix 4 Oct, 2023 @ 6:19pm 
Originally posted by Emerion:
Originally posted by Phoenix:
a black texture indicates it couldn't be loaded in time, so it just *isn't*. As you play the game they'll be cached and won't flicker again. The alternative is the games standard frame drops.

What FPS are you getting, when does it drop, and what is your rig?
I have an Nvidia RTX 4070, Intel Core I7 and 32g RAM. I never had an issue with FPS, it's just that every time I enter a new zone or speak with someone/enter battle, some textures goes black for an instant, then for a while everything goes back to normal and then it happens again. Too bad cause I already noticed the difference with the stutters since they're almost reduced to zero (this patch works great with that). Do I have to change some graphic setting or something like that maybe?
This is sadly the tradeoff. In exchange for no stutters, you now have to deal with the occasional black texture. You can remove "dxvk.enableAsync = true" from the config file, this may introduce more stuttering but it should stop the black textures (or alternatively deleting the config file)
xxpillowhugxx 26 Nov, 2023 @ 10:34am 
Originally posted by Phoenix:
Originally posted by Emerion:
I have an Nvidia RTX 4070, Intel Core I7 and 32g RAM. I never had an issue with FPS, it's just that every time I enter a new zone or speak with someone/enter battle, some textures goes black for an instant, then for a while everything goes back to normal and then it happens again. Too bad cause I already noticed the difference with the stutters since they're almost reduced to zero (this patch works great with that). Do I have to change some graphic setting or something like that maybe?
This is sadly the tradeoff. In exchange for no stutters, you now have to deal with the occasional black texture. You can remove "dxvk.enableAsync = true" from the config file, this may introduce more stuttering but it should stop the black textures (or alternatively deleting the config file)
haven't tried it yet but this sounds very promising. I'll take black textures over stutter hell any day of the week
Last edited by xxpillowhugxx; 26 Nov, 2023 @ 10:34am
Kishinfoulux 10 Dec, 2023 @ 2:01pm 
Just want to say thanks for this. Have been wanting to replay it and I knew there were no real concrete fixes for the issues it has, but this has been nice.
Привет из России.
Сегодня увидел ролик про GPLAsync
Dxvk vs dx11 Arc a750
Я был в шоке от того что нас обманули
И продолжают обманывать чтобы мы шли каждый год за новыми процессорами покупать их
.
Вы только подумайте я мучился с statters.3 года на своём "ужасном" 5600x
Но оказалось что не в нем дело...
Оказывается это directx который нарочно запрограммирован так чтобы нагружать процессор на 20% вместо 100%
Ребята , давайте бороться этим злом
Я почему то уверен что directx в сговоре с производителями процессоров!
Им это выгодно
Большой УХ 19 Oct, 2024 @ 11:09am 
Originally posted by Kuroh:
Stutter is almost gone for me, I think the only problem left is asset streaming when traversing areas
какой у вас процессор?
Сегодня попробовал mirror edge catalyst
Красота...
Процессор жужжал как резаный)
Резань..
Thanks u saved my life
Originally posted by Phoenix:
Howdy,

I spent roughly a couple weeks trying to optimize LR on my buddy's account and figured it was worth sharing the end results.

Lightning Returns has CRAZY shader stutter, much of which can be minimized with DXVK. DXVK "translates" DirectX to Vulkan, which works a lot better with newer hardware. Additionally, with asynchronous shader compilation, any briefly "missing" shaders just won't appear for a split second instead of hanging up your game for a couple seconds. This can range from a mild distraction to a major improvement simply as a lot of shaders are compiled offscreen when moving through areas.

DXVK is still maintained but lacks async, DXVK async is no longer maintained and behind. We are going to use DXVK-gplasync as it is still maintained and has async.

Ok enough talking here's what you do:

1. Download the latest release of DXVK-gplasync here:
https://gitlab.com/Ph42oN/dxvk-gplasync/-/releases

For me, the latest release was 2.3-1.

2. Extract the zip folder. Go to dxvk-gplasync-(version) > x32. Copy "d3d9.dll"

3. Go to your Lightning Returns install folder, typically in SteamLibrary > steamapps > common > Lightning Returns - Final Fantasy XIII. Paste the file in there.

4. Create a text file called "dxvk.conf" in that same directory. Add the following three lines to the file (without the quotes):
"dxgi.syncInterval = 1
dxvk.enableAsync = true
dxgi.tearFree = Auto"

And that's it! If you want to ensure that it's actually working follow step 5 to enable the overlay.

5. Open Windows Settings. Go to System, then About, then Advanced System Settings in blue under Device Specifications. This will open the Advanced tab, click on Environmental Variables.

6. Click "New". In Variable name, type "DXVK_HUD". In variable value, type "devinfo,fps". Click Ok/ apply three times to apply the changes, you will now have an overlay in the top left hand corner of the game.

If this works for you then thank god cause this game is a nightmare to run smoothly otherwise. Oh and feel free to gift me a copy of this game so I can stop library sharing it from my pal love you thanks.
Unfortunately this didn’t work for me. There’s no hud showing up, and while reshade recognizes it as a Vulkan game now at least, I’m still getting all the same stuttering. I’ve tried two different devices I have. A 4060 and an Rog Ally, same issue on both for me. Looks like I’ll just keep having to use Lossless Scaling as that seems to smoothen out the movement making it playable
Last edited by seancruz1992; 8 Mar @ 5:42pm
Jamesx 1 May @ 11:51am 
I tried this and this game still runs like garbage. At least with FF13-FF13 2 theres a fix because I dont get it, did this game run better when it came out in 2015 or some ♥♥♥♥? - 3070ti 5700x3D.
Jamesx 1 May @ 12:23pm 
Thank you for the post
< >
Showing 1-15 of 15 comments
Per page: 1530 50