Question / Help Random dropped frames after hours of streaming

So i start my stream everything is fine for about 5 hours and then it drops 16 frames the % still says 0 a few more hours pass 100 more dropped frames % still says 0 few more hours 283 frames dropped still says 0.0% should i be worried. also getting "Number of lagged frames due to rendering lag/stalls:" but those don't seem to affect my stream at all. full stream was 11 hours. This pattern happens give or take a few hours when i do long streams.

Don't tell me that the preset is to high cuz my two cpu's dont even begin to sweat.
 

Attachments

  • 2016-11-07 09-07-25.txt
    21.2 KB · Views: 93

RytoEX

Forum Admin
Forum Moderator
Developer
From your log:
20:14:52.783: Output 'adv_stream': Total encoded frames: 2392651
20:14:52.783: Output 'adv_stream': Total drawn frames: 2392651
20:14:52.783: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 111199 (4.6%)
20:14:52.783: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 283 (0.0%)
283 dropped frames / 2392651 total frames = 1.1827884635076323291612525186498e-4%
Put another way: 0.0001182788%
Which is basically 0.0%

That said, you're lagging frames, so your computer is having trouble keeping up with encoding and gaming. In this case, the GPU is having trouble rendering frames in time to get them to the encoder, so it has nothing to do with your CPU. Here are a few options that may help:
  • Turn down game graphics
  • Turn down in-game FPS
  • Turn down encoder FPS
  • Switch your rescale from the GPU (Settings > Video) to your CPU encoder (Settings > Output)
Someone else may have more suggestions.
 

RytoEX

Forum Admin
Forum Moderator
Developer
If you want to try adjusting OBS Studio settings, here's what you would try. If any one thing doesn't help enough, try another one on top of the others.
  1. Go into Settings > Video. Turn your FPS from 60 to 30.
  2. Go into Settings > Video. Set your Output (Scaled) Resolution to 1920x1080. Then...
    Go into Settings > Outputs > Streaming. Enable "Rescale Output" and set it to 1280x720. This should move the load of rescaling the frame from the GPU to the encoder, which is x264 in your case, which is run on the CPU. Normally, I would recommend leaving this alone, but you seem to have plenty of CPU to use.
  3. Try reducing the complexity of your scene (number of sources/filters, reduce file sizes, remove large GIFs, etc.).
If those don't help, then you'll have to reduce your in-game settings.
 
If you want to try adjusting OBS Studio settings, here's what you would try. If any one thing doesn't help enough, try another one on top of the others.
  1. Go into Settings > Video. Turn your FPS from 60 to 30.
  2. Go into Settings > Video. Set your Output (Scaled) Resolution to 1920x1080. Then...
    Go into Settings > Outputs > Streaming. Enable "Rescale Output" and set it to 1280x720. This should move the load of rescaling the frame from the GPU to the encoder, which is x264 in your case, which is run on the CPU. Normally, I would recommend leaving this alone, but you seem to have plenty of CPU to use.
  3. Try reducing the complexity of your scene (number of sources/filters, reduce file sizes, remove large GIFs, etc.).
If those don't help, then you'll have to reduce your in-game settings.
Thank you ill give it a try and let you know what i find.
 
this was a short 22min stream to one of the ingest servers that had the best quality and ping.
 

Attachments

  • 2016-11-08 12-43-13.txt
    19 KB · Views: 54

RytoEX

Forum Admin
Forum Moderator
Developer
You're lagging less slightly less frames. You're still capturing/encoding at 60FPS though, which is likely the bigger issue here. Having OBS set to 60 FPS means that every 16.6667 ms, a frame must be rendered and encoded and output. On your system, that's not happening, because the encoder is not getting the frame from the GPU fast enough (as far as I can tell). Moving to 30 FPS would reduce the strain by making it so that you have 33.3333 ms to complete a frame.

If I'm reading your log's profiler results correctly, you would still have occasional render lag issues, but that probably largely stems from the fact that you're running a GTX 660. I'm not knowledgeable enough to interpret the profiler results to say if there's anything else I can recommend.
 
The GTX 660 is old right now. That said, Windows 10 and Nvidia on that OS has made OBS perform much worse than when using OBS on Windows 7 and 8.1 on the exact same settings. I just wished someone else can really replicate the problem on multiple OS's to see Windows 10 with Nvidia performing poorly when GPU usage is high. Seems I'm the only one capable of comparing OBS on different Windows builds.
 
The GTX 660 is old right now. That said, Windows 10 and Nvidia on that OS has made OBS perform much worse than when using OBS on Windows 7 and 8.1 on the exact same settings. I just wished someone else can really replicate the problem on multiple OS's to see Windows 10 with Nvidia performing poorly when GPU usage is high. Seems I'm the only one capable of comparing OBS on different Windows builds.

So windows 10 is not playing nice with my card are not playing nice.. you know I dont seem to remember having issues with these settings on windows 7..
 
So windows 10 is not playing nice with my card are not playing nice.. you know I dont seem to remember having issues with these settings on windows 7..

That's pretty much it. The problem is that I don't even know if Microsoft, Nvidia, or even the OBS devs are aware of it despite my efforts to post here with log comparisons

https://obsproject.com/forum/threads/windows-10-issues-with-obs-studio-comparing-logs-on-w8-1-and-w10.55169/

Also even if you would consider getting a GTX 10 series, even a GTX 1080, you would still have to reduce the load on the GPU in Windows 10 in order to keep OBS in 60fps (GPU usage must be below 95% or so to keep OBS performance intact). I don't even know why Windows 10 is causing OBS to have significantly lower FPS than in 7 and 8.1 and I know for a fact this is present since the release date of Windows 10, yet nobody is aware of it.
 

RytoEX

Forum Admin
Forum Moderator
Developer
@Unknown Richard
I'm pretty sure the Microsoft and Nvidia devs don't comb through the OBS forums looking for bug reports. They each have their own avenues and tools of reporting possible bugs. The only reason Microsoft and Nvidia looked into the Windows 10 AU stuff is because OBS staff reached out to Microsoft on Twitter. We're still waiting to hear back from Nvidia for an update.

I have seen and read your posts about degraded OBS performance on Windows 10 when the GPU is at high load. I have not replied because I do not know enough about the intricacies of how OBS works, Windows 10, and drivers to contribute any meaningful information. As I understand it, @dodgepong has already replied to your thread with about as much of an authoritative answer as you're likely to get for the time being. That said, I'll try to get the issue some attention, but no promises. As always, we're all volunteers here, and Jim is only one man.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Someone asked me to peek in here briefly. Yea in this case it was the GPU. Encoding is fine because there's no complaint in the log about that, and I mean xeons with 32 logical cores so encoding is not going to be the problem.

For Unknown Richard:
Hey there, I am aware of things. I'm always watching and talking with the community, and people always reach out to me if there's anything unusual going on, especially if it affects a lot of people. I have seen your thread and I actually really appreciate all the logs and comparisons; I wish more people would do that. I apologize if I don't always respond though -- I'll respond here just to let you know I do see things.

Windows 10 does seem to make a bit more significant use of the GPU than previous versions, so that may be a factor -- but I'm not entirely sure because only microsoft knows all of the changes under the hood. I can only make a judgment based upon what I see from users and what I see/feel myself. Kind of sucks that we have to be in that position but that's just the nature of the situation. It seems microsoft has changed the way it handles compositing a bit though. It feels like the windows 10 anniversary update in particular has further changed the graphics backend on windows as well (especially considering the driver issue we've been having if that's any indication that microsoft has changed things). How much microsoft has changed things I'm not sure, but I can't really do much if it's an operating system issue or a change in operating system design.

What can be done? Well, in your case I'd sadly just have to recommend a GPU upgrade. You're doing 1080p 60fps so you have to keep in mind that's pretty demanding as it is. You still using that 750 ti? Definitely upgrade if/when you can afford it. I think the only thing you can do is either stick with 8.1 or upgrade that GPU. In terms of the code, if I thought there was something off, something incompatible, or something I could work around, I would change it immediately to help (like I ended up doing with the driver issue), but in this case I think that the operating system has just become a bit more demanding, and to compensate you may just need to increase your system's horsepower a bit to compensate.

Just my opinion on the matter though. Just remember that I am always monitoring things, even if I'm not always in threads responding. This program is my life pretty much at this point, so the health of the program is my own health
 
SOOOOO i got myself a GTX 1060 6GB and im still getting Number of lagged frames due to rendering lag/stalls:
stream settings are CBR, 2700 Bitrate, downscaled 960x540, 60fps, oh and cpu preset is at medium, doesnt make a difference what preset i use.
 

ssimpson

New Member
I am having the same issue. My specs include 2x xeon e5-2680's (2.8gz) 20 core 40 threads and my GPU is a 1080ti.
So I think I have the GPU and enough CPU, but regardless, game runs smooth around 48 fps (GTA 5 Ultra) but obs lags and dips to 20-25. The pattern is random, happens for 10-20 minutes and then usually goes back to normal.

I have tried various recommended settings for obs utilizing either CPU or GPU and I find no solution while the lag spikes are happening except to wait it out. I just wish I knew what it was that was causing the problem specifically, if it is my CPU or GPU.

I will upload the status report file tonight when i get home. I didn't know about that until I found this forum. Thank you all for your time.
 
Top