Question / Help I can't stream Battlefield V with DX12 on

Tomasz Brek

New Member
I have a problem with streaming battlefield V using the DX12 function ingame. This causes lagspikes/dropped frames for my viewers.
The reason I want to play with DX 12 on is that I gain a massive FPS boost (like 40+ frames) and I do not get any inputlag on my mouse because I do not have to use any Future frame rendering. Using DX 11 I get very low FPS for my gaming setup.
NOTE that I can play on DX12 just fine. I get max 200 fps with 0 inputlag and no FPS lag, BUT as soon as I start the stream, the stream causes lagspikes/dropped frames for my viewers.
playing DX12 = NO problem
Streaming DX12 = lagspikes/dropped frames

My setup:
Gaming pc
asus Z370-F + i7 8700k + RTX 2080 ti + 16 gb DDR4 ram

Streaming pc
Asus Rampage V extreme + i7 5930k + GTX 680 + 32 gb DDR4 ram

I am using an Avermedia Live Gamer HD 2 card in my streaming pc. I connec a HDMI cable from my RTX (out) to the capture card (in). I then duplicate the screen in windows.
My native resolution is 1080p 144hz. The cloned display (the capture card) is running at 1080p 60 fps. For audio I am using a Sound blaster card with optical cable.

My settings for OBS
rescale to 900p 60 fps
6000 bitrate
Medium preset

My settings for Battlefield V
1080p with everything on Low/off. I want max fps for performance. (Yes I know a RTX 2080ti is an overkill for this).

Please note these settings work just fine with every stream. I can stream in 1080p 60 fps aswell (with fast preset), but not in Battlefield. So I rather stream 900p with better image than a blurry 1080p, especially because I mainly play fps games and these have fast scenes.

So as mentioned before, the problem of lagspikes/dropped frames only occurs when I stream Battlefield V using the DX 12. On DX 11 I get 0 dropped frames using the settings mentioned above.

Before you jump to conclusions, please read the steps I already have taken in order to try and fix the problem.
- Lowering output resolution to 480p with 30 fps on (ultra/super/very fast). I lowered it dramatically to rule out any CPU bottlenecks. At 480p the CPU runs between 10-20% with 0 spikes to 100% but with lagspikes/dropped frames. At 900p it runs at 50-70 % with 0 spikes to 100% but with lagspikes/dropped frames. On DX 11 both settings give me 0 lagspikes/dropped frames.
- Using different capture cards. I have tested the Elgato HD60 pro and the Live gamer 4k. Both capture cards give me the same lagspikes/dropped frames as with the Live gamer HD 2. There was moderate performance gain using the Elgato HD60 pro, but not enough to make the stream watchable.
- Using different PCI-e slot on the capture cards. No improvement.
- More memory in the Stream pc. Switched from 16gb to 32 gb. No improvement
- Using different HDMI cables. No improvement
- Some viewers suggested NDI streaming, because this will rule out any problem with the capture card. To my surprise the NDI stream works great, but this still results with lagspikes/dropped frames using DX12 in Battlefield V.
- Using different OBS. Streamlabs OBS and OBS Studio give me the same results.
- Even streaming with hardware encoding instead of software encoding results in the same lagspikes/dropped frames. Aswell streaming only using my gaming computer.
- I have ruled out any connectivety problems, as I can stream just fine with the OBS settings mentioned above, but with DX 11.

Not yet tested, but unlikely to change anything:
- different GPU in streampc
- running a different DX 12 game

Suggestions
- Blowing on the cables (DooM49)

I have given up on fixing the problem. I anybody of you know a solution, I would glady hear it out. I am not a tech guru, but I have tested everything I know to my knowledge. Hell I would even pay if somebody can give me a solution.
The main reason why I want to fix this, is that I want to stream Battlefield V giving my best possible gameplay. Right know I feel like I am playing like garbage because of the FPS and inputlag.

I don't know how to read the logs in OBS, so appologies for not adding them. If people want them, please let me know and I will try to add them asap.

Twitch.tv/brekk1e
 
Last edited:

Narcogen

Active Member
There is a sticky on posting logs right in main support forum.

Please post a log with your issue! Here's how...

Otherwise, just let me clarify. You're saying that somehow your streaming PC, which is receiving footage from your gaming PC via a connected capture card, somehow produces more lag when the gaming PC is using the DX12 renderer... but that you don't see this effect yourself while playing? And that it does not

Because that doesn't seem physically possible. The point of using a capture card is so that what the streaming PC gets is exactly what the gaming PC shows. I'm not sure what is going on here, but I would hope that a log would show it.

I am curious why you say you're asking the 2080 to mirror the display when the Avermedia has physical passthrough on it. I suspect your issue is the standard Windows problem of trying to run a 3D application on two displays at different refresh rates, which is known to kill performance.
 

Stormfirebird

New Member
Otherwise, just let me clarify. You're saying that somehow your streaming PC, which is receiving footage from your gaming PC via a connected capture card, somehow produces more lag when the gaming PC is using the DX12 renderer... but that you don't see this effect yourself while playing?
Pretty much that. The stream (on twitch) starts getting choppy as soon as he switches BFV to DX12. It shows up just fine in the preview on OBS and as a local recording, but as soon as he goes live he is dropping frames. Doesn't matter what resolution, preset, encoder etc. only with BFV DX12 though.
I am curious why you say you're asking the 2080 to mirror the display when the Avermedia has physical passthrough on it.
Pretty sure there's no HDMI 2.0 on that model so it's mostly useless for 144hz. His current monitor doesn't support 144hz via HDMI on native resolution anyway. If I remember correctly he even tried using his Monitor at 60hz, not sure if it was via passthrough.
Tbh I think the Streaming-PC GPU is the most likely culprit at this point.
 
Last edited:

Tomasz Brek

New Member
I have created some logs of the streams. I hope this helps to identify the problem.

I have also read to try and stream on a different platform and to my surprise when I was streaming on 720p on youtube for the first time (first test) I had no lags. when I switched to 1080p I got spikes but those were due to insuficiant CPU power because it was spiking to 95%. I then tried 900p on Twitch and it got the same frames dropped. Then tested 720p twitch and again 720p youtube. After those few twitch tests, the youtube streams started to lag aswell. Again no fps drops on my gaming pc whatsoever using DX12. Butter smooth gameplay and it is so much more fun to play BFV than on DX11.

Here are the logs

https://obsproject.com/logs/7xSGqdNoy7JWqNey youtube 1080p
https://obsproject.com/logs/__6aM_nNvNJmlKaC Twitch 900p - https://www.twitch.tv/videos/363994593
https://obsproject.com/logs/wmkjUSiaSltp1nqE Twitch 720p - https://www.twitch.tv/videos/364003462
https://obsproject.com/logs/zkl6bHe8c_4F_EX5 youtube 720 p - https://www.youtube.com/watch?v=5oOTrBNqIzc
https://obsproject.com/logs/gh8RYQGekG0Z32Ln Twitch 720p retest - https://www.twitch.tv/videos/364009080
 

8LAZ3

Member
Hey Brek! I've read your issue and to my understanding, the issue is with DX12 in BFV only.
-You said you have yet to try other DX12 supported games; I know it's a long shot but it will surely help narrow down the issue.
-You also mentioned you streamed with your gaming PC only but ended up with the same results. My suggestion is can you try that again except this time use only 1 monitor: disconnect any other monitors you might have hooked to your gaming PC(including your cap card) and see if that fixes it.
 

Tomasz Brek

New Member
Found a log I think. I found this in the log: Number of dropped frames due to insufficient bandwidth/connection stalls: 3922 (14.9%)
 

Attachments

  • 2019-01-14 22-18-20.txt
    16.4 KB · Views: 21

instaSHINOBI

New Member
I don't have logs but I had the exact same issue. BFV in DX12 itself was performing well @ 60 FPS. The difference: I am using SLOBS and it showed the current rendering FPS in the Preview pane. It was stuttering below 12. Even my webcam and preview video were stuttering. Switching BFV back to DX11 resulted in the same game performance (60 FPS), but SLOBS FPS went returned up to a solid 60 FPS also.
  • Ryzen 7 1700X 3.8 GHz, 8-core, 16 threads
  • AORUS GTX 1080ti, 11GB
  • 32 GB DDR4 RAM, 2667MHz
  • Everything on M.2 NVMe or SATA SSDs
  • SLOBS output @ 1080p60, NVENC (new) @ Max quality -- also tested the issue with NVENC (new) @ fastest. Didn't matter. Something about BFV DX12 is really screwy
As far as I can tell, Warcraft with DX12 works amazing and streams normally.
 
Top