protonscr

FFXIII (Final Fantasy 13) - Missing inventory/menu text on resolutions above 720p

dxvkclosed
doitsujin/dxvk#1740 · opened 2020-08-21 by bassomitron · updated 2020-08-22 · 15 comments · github
Bbassomitron 2020-08-21 github

When I set the solution to higher than 720p, text within the game menu (inventory items, abilities, etc.) gets cut off. The higher the resolution you go, the worse the issue becomes.

I am running this on Windows 10, AMD Ryzen 3600x, 5700XT, and within the Steam version of the game. Also using the FF13Fixer v1.46 patch

KK0bin maintainer 2020-08-21 github

Try using the latest master or 1.7.0.

Bbassomitron 2020-08-21 github

Try using the latest master or 1.7.0.

I am using dxvk-1.7.1

KK0bin maintainer 2020-08-21 github

I know... That's why I'm asking you to use master or 1.7.0. There's a known bug in 1.7.1.

Preferably master, so you could verify that the bug is fixed.

Bbassomitron 2020-08-21 github

I know... That's why I'm asking you to use master or 1.7.0. There's a known bug in 1.7.1.

Preferably master, so you could verify that the bug is fixed.

Ahh, okay, sorry I misunderstood. I will go ahead and try it when I get back from some errands in an hour or two and post the results. Thanks for the info!

Bbassomitron 2020-08-21 github

v1.7.0 did not fix the issue.

KK0bin maintainer 2020-08-21 github

We need an apitrace then.
Here's a guide how you make one: https://github.com/Joshua-Ashton/d9vk/wiki/Making-a-Trace
You'll notice that the download link in that guide is dead. Use this one instead: https://ci.appveyor.com/api/projects/jrfonseca/apitrace/artifacts/build/apitrace-latest-win32.7z?branch=master&job=msvc32

Bbassomitron 2020-08-21 github

The irony of using that apitrace, is that the issue disappears. The loading screen story recap text is present, the inventory/abilities/etc text is there. Not sure what else I can provide that will be useful.

KK0bin maintainer 2020-08-21 github

That's to be expected. Please upload the apitrace.

Bbassomitron 2020-08-21 github

Alrighty, my upload speed sucks so it'll take about 25 minutes or so and I'll drop the gdrive link once it's complated.

KK0bin maintainer 2020-08-21 github

The game seems to set a scissor rect that cuts off the UI. The issue however also shows up when replaying the apitrace with Windows D3D9.

Does that bug also show up without DXVK for you? It looks like a game bug.

Bbassomitron 2020-08-21 github

No, it doesn't occur when not using DXVK. FF13Fix patch also mentions this issue with the scissor rect and it fixed it for the battle scan combat info getting cut off. From the FF13Fix Github, closed case #5 (https://github.com/rebtd7/FF13Fix/issues/5):

"Playing in a 16:10 resolution, the enemy intel info text isn't displaying correctly. The horizontal pos and size are correct, but it only displays about 2/3 the text vertically (about 2.5 lines instead of all 4).

The game uses a letterbox presentation for non-16:9 resolutions (I actually don't know if the backbuffer is 16:9 or 16:10, but obviously the positioning for the rect isn't correct; I assume the size is fine since the presentation is always 16:9 anyway).

It works as expected in 16:9 resolutions (all 4 lines draw correctly).

Edit: yeah, looking at FF13_FixMissingEnemyScan, it just assumes 16:9, so the rect is getting placed too high on the screen and the text is getting cut off.

Dev of the patch replied with this:

Thanks for the report. Fixed in 1.4.1.

Fun fact that I've found out when fixing this:
If you are playing on, say, 1920x1200, the game will actually render at that resolution.
Then it downscales to 1920x1080, adding the black bars on top and bottom. So you are effectively supersampling on one axis.

Ddoitsujin maintainer 2020-08-22 github

Can you please try this without FF13Fix? Not sure if that thing even works at all with DXVK.

This game also used to work more or less fine in the past, if it's broken now there's likely a recent regression breaking it.

Ddlshinobi 2020-08-22 github

So, I've tested FFXIII with 1080p resolution and text is visible in menu / inventory.
Screenshot_20200822_182323
P.S. gpu nVidia + vulkan beta drivers, dxvk job build 1344.

Bbassomitron 2020-08-22 github

Alright, so I had Steam verify file integrity and essentially started over (removed FF13Fix). I put in the DXVK 1.7.1 files again and booted it up to 1440p, 4k shadows, and 16x AA. Everything is working fine. I am betting that FF13Fix's scissor rect 'fix' in the most recent build is causing the conflict, but I have no idea as I am not experienced in driver coding or API hooking (think this is pretty much what FF13Fix is doing) for this type of stuff in general.

I am going to consider this issue resolved and put the blame on FF13Fix. I may consider posting the issue there and see if they're able to figure out a resolution. Funny enough, the game is running smoothly with DXVK (no frame rate issues that I've noticed in the first 5 minutes) and since I play with a controller anyway, most of the 'fixes' that patch provides aren't really relevant if the FPS is remaining smooth/stable.

Anyway, thanks for the help everyone, sorry to bug you all. Have a good one!

Nothing extracted yet.