dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Titanfall 2, Apex massive framerate drop with specific VFX

Open rurigk opened this issue 1 year ago • 8 comments

Please describe your issue as accurately as possible. Some VFX makes the games to have a massive framerate drop This issue has been happening to me for a very long time, it first i was thinking that it was just Apex Legends but i noticed that specific VFX makes Titanfall 2 have this issue as well

Why i make an issue with 2 games? Because Titanfall 2 and Apex games share game engine (i know apex uses more updated engine) And i think the VFX that make games drop framerate share common traits

How to reproduce: Framerate drop is more noticeable with 1440p or 4k

In Apex Legends throw from 1 to 3 thermites and look from close distance, this happens as well with Holosprites, some HUD effects are affected as well and are the worst, like healing zones from special events (not available for the moment)

Other VFX which are much more bigger and take a lot more of screen space are not affected

In Titanfall 2 inside a Titan make enemy Monarch Titan hit you with "Energy Siphon", inside a Titan make enemy Scorch Titan hit you with "Flame Core"

This issue happens for me with both DXVK and vkd3d-proton and i'm not sure if it is something to do with mesa

Software information

Titanfall 2 and Apex Legends Tested on low and high settings Resolutions tested: 1080p, 1440p, 4k

System information

  • Distro: Arch Linux
  • GPU: RX 6700 XT, RX 570
  • Driver: mesa 23.1.1-1, vulkan-radeon 23.1.1-1 (no amdvlk installed)
  • Wine version: I'm using proton experimental but this issue affects multiple older versions (tested on 6.3 and newer)
  • DXVK version: The one included with proton (current proton experimental)

I'm gonna try to upload the apitrace of Titanfall 2 as soon as one of my friends help me to replicate the issue

rurigk avatar Jun 07 '23 22:06 rurigk

In Apex Legends throw from 1 to 3 thermites and look from close distance, this happens as well with Holosprites, some HUD effects are affected as well and are the worst, like healing zones from special events (not available for the moment)

I have roughly no idea what any of these words mean. Can you show a picture? Do we even have solid proof that the effects in question do not affect performance on Windows in a similar way, especially since you mention that the same thing happens in D3D12 mode?

It's fairly normal for transparency-heavy effects to tank performance especially if they cover large portions of the screen, but that's not a DXVK problem, that's just a general graphics problem. Not sure if that descriptions apply though.

doitsujin avatar Jun 07 '23 23:06 doitsujin

@rurigk Friendly ping

Blisto91 avatar Sep 03 '23 10:09 Blisto91

I was unable to test this because i had no time I recently got a steam deck so i'm gonna be able to test this by myself

I didn't forget, just had no time in this months

rurigk avatar Sep 03 '23 23:09 rurigk

I'm now unable to test this since i cant launch the game EA App always tell me "Failed To Launch, An Error On Our End Caused Your Launch To Fail" on every EA Launcher game

I'm trying to fix that before i can test this

rurigk avatar Sep 12 '23 04:09 rurigk

I'm experiencing this as well, makes Titanfall 2 basically unplayable with more than one enemy Monarch and makes Frontier Defense completely unplayable on higher difficulties.

It seems to be tied to some kind of glitch/fuzz/distortion effect on the Titan's "screen" that only happens if you get hit with arc (from Ronin's Arc Wave, Monarch's Energy Siphon, Arc Grenades, or an Arc Titan's field in FD) or get Flame Core'd, and becomes significantly worse on higher sync monitors and at higher resolution.

Anyways, this is a known hardware bug with AMD GPUs and some older GTX <10 Series cards and occurs on Windows as well, I doubt DXVK could fix this. I could file a bug report for Mesa but it's unlikely it'll get fixed, since AMD didn't fix it on Radeon Software even at the game's peak and it persists on modern GPUs.

amenokagaseo avatar Nov 05 '23 11:11 amenokagaseo

@amenokagaseo it seems that this is the case

I think the game "reads/writes" the rendered frame to a "texture" and then compose the glitch effect using that "texture" in postprocessing

I'm not sure if it's a AMD hardware issue or a driver issue but at this point I think it's not a DXVK issue

It may be possible to make a workaround but I think it may not be the correct way to do fix the issue

rurigk avatar Nov 05 '23 12:11 rurigk

What’s your texture filtering settings? If you are on aniso settings, does it improve if you set it to bilinear?

ishitatsuyuki avatar Dec 29 '23 18:12 ishitatsuyuki

Doing some quick comparisons in Apex Legends of native Windows vs Linux dxvk + radv the fps seems about the same. This is with a RX 6800 at 1080p highest settings (no supersampling). Edit: bilinear is the same it seems.

Native d3d11

image image image

Linux dxvk radv

Screenshot_20231229_184433 Screenshot_20231229_184447 Screenshot_20231229_184515

Same but with dxvk hud

Screenshot_20231229_184759 Screenshot_20231229_184813 Screenshot_20231229_184850

The game does not want to cooperate with apitrace so far so instead made a renderdoc capture. Made on a RX 6800 with radv 23.3.1 https://drive.proton.me/urls/CVG0Z0T8KM#Z4RJKDmAfe1F

Blisto91 avatar Dec 29 '23 18:12 Blisto91