Question / Help Frames from game not making it to encoder

MattEatsMochi

New Member
I know this is a sea of questions, but I feel like I'm a pretty technologically savvy dude and everything I've tried has gotten me no closer to a better result. For a visual representation of the question, I recorded this live broadcast to capture the issue that I'm having:

https://www.youtube.com/watch?v=szsKA58tX5s

In the video I highlight that while I'm able to get 100+ fps in a game like Overwatch with my GPU, the broadcast is only capable of broadcasting 20 some odd of those frames per second. I have fps counters from both the game and OBS visible on screen for your benefit.

Some things to note: I'm using NVENC to encode. My stage is 1920x1080 down scaled to 1280x720. I've run some tests and even while running all this my CPU is topping out at around 60%.

Any help in troubleshooting the issue would be amazing. I'll do any tests within reason and post back to this thread. Thanks in advance.


Edit: (specs & log file)
Despite me thinking that I shouldn't have a problem, I clearly do. That said I think my machine is a monster with a i7-6700k, 32g ram, 1050ti 4g gpu, m.2 ssd, Windows 10, etc.

If it makes a difference you can see my build here:
https://pcpartpicker.com/list/pKmvsJ

forum isn't letting me attach my log file from this test, so here it is on pastebin:
http://pastebin.com/7VcMa9RD
 

Attachments

  • 2017-01-08 22-00-32.txt
    11.4 KB · Views: 8

EBrito

Active Member
21:44:02.580: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1806 (11.4%)


You are maxing your GPU.
Set ingame FPS limit to 60
 

MattEatsMochi

New Member
Alright! So I did quite a bit, but with the understanding that I was maxing out my GPU I was able to make some adjustments that allow me to broadcast with all the on screen assets that I want.

for anyone finding this thread later, I'll go into some details. My graphics package is pretty heavy and includes on screen video overlays, custom video transitions, and in some cases doubled up video sources with effects. I knew it ended up taking a lot of overhead, just didn't know I would need to be so conservative in order to get what I wanted.

Quick note: .mov with animation codec was really the biggest killer here, and the switch to .webm really saved me quite a bit. For anyone looking for a solution on how to display .webm with alpha, there is some GREAT code in this post - https://obsproject.com/mantis/view.php?id=646

Also mentioned in this thread is that the method for displaying .webm might soon not be necessary as Jim might be making it possible with the Media Source plugin.

I started by converting all my video overlays and transitions to this format, but was still getting slightly sub-optimal results. The final step was to change the stage size from 1920 (downscaled to 720) to just a straight 720 with bilinear filter (since I'm not scaling).

Anyone interested in this result can view it here while twitch still has it:
https://www.twitch.tv/mattstercat/v/113654580

All said and done, I was able to maintain a constant 60fps. Next setps include trying to get higher quality out of my GPU for in game play.
 
Top