Question / Help The Division OBS has Spikes of Low to high FPS Game is normal!

Skymasterpt

New Member
Hi all,

I have been suffering from some awkward spikes on FPS with my obs, while the pc i have it's more than enough to run both at the same time and play with the gfx at ultra quality as i've done previously now it out of nowhere is having low fps on the OBS only and the stream gets stuttering... I have done 3 different logs although i haven't changed the settings on the OBS, today the game and the OBS was fine, (besides the unusual crashes with the game that is getting on my nerves though).

Is there something i can improve with my settings??


https://obsproject.com/logs/NsI6hIVJsPx6GvjA

https://obsproject.com/logs/gwyVyil7nNciQ95r

https://obsproject.com/logs/oPnUepbpxySRHGL9



NOTE: i usually don't update to the latest drivers on my GPU as they seem to come with a few amount of bugs and i'm using at this moment not the latest as it was launched yesterday but the previous...

NOTE 2:
My pc:
Ryzen 1600x (not overclocked) with AIO cooling H115i corsair
Asus Strix 1080ti
16gb ram 2666mhz
1tb hdd
1 m.2 - 256gb
1 SSD 500gb


Any advices please??
 

Narcogen

Active Member
Is Windows Game Mode off?

22:42:06.071: ==== Streaming Start ===============================================
22:43:39.798: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
22:47:02.061: adding 21 milliseconds of audio buffering, total audio buffering is now 85 milliseconds
22:50:16.000: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds


Indicative of generally high system load.

22:58:38.688: Video stopped, number of skipped frames due to encoding lag: 1/59544 (0.0%)
22:58:38.760: Error encoding with encoder 'streaming_h264'
22:58:42.370: [game-capture: 'Division'] capture window no longer exists, terminating capture
22:58:42.371: [game-capture: 'Division'] capture stopped
22:59:20.114: [rtmp stream: 'adv_stream'] User stopped the stream
22:59:20.114: Output 'adv_stream': stopping
22:59:20.114: Output 'adv_stream': Total frames output: 59534
22:59:20.114: Output 'adv_stream': Total drawn frames: 61898 (62109 attempted)
22:59:20.114: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 211 (0.3%)


No significant encoder or rendering lag.

22:59:36.535: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.604: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.693: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.788: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.925: warning: deprecated pixel format used, make sure you did set range correctly


Your webcam seems to be generating a lot of log errors.

22:59:37.397: - scene 'GAME SCENE':
22:59:37.399: - source: 'Witcher3_Game' (game_capture)
22:59:37.399: - source: 'WoW' (game_capture)
22:59:37.399: - source: 'ESO' (game_capture)
22:59:37.399: - source: 'Elite_Game' (game_capture)
22:59:37.399: - source: 'D3_Game' (game_capture)
22:59:37.399: - source: 'Tomb Raider' (game_capture)
22:59:37.399: - source: 'Path of Exile' (game_capture)
22:59:37.400: - source: 'Grim Dawn' (game_capture)
22:59:37.400: - source: 'Division' (game_capture)


This is generally not recommended. You're better off either keeping separately configured game captures in separate scene(s) or scene collections, and having one game capture in a scene which you reconfigure as needed. Multiple game capture sources can interfere and may use system resources even when not active.

23:01:33.542: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
23:04:41.534: adding 21 milliseconds of audio buffering, total audio buffering is now 85 milliseconds
23:08:16.596: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds
23:13:33.665: error: EncodePicture failed!: generic error (20)
23:13:33.665: [NVENC encoder: 'streaming_h264'] nvenc_encode: Error encoding: Unknown error occurred


Are you using any custom NVENC settings?
 

Skymasterpt

New Member
Is Windows Game Mode off?

22:42:06.071: ==== Streaming Start ===============================================
22:43:39.798: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
22:47:02.061: adding 21 milliseconds of audio buffering, total audio buffering is now 85 milliseconds
22:50:16.000: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds


Indicative of generally high system load.

22:58:38.688: Video stopped, number of skipped frames due to encoding lag: 1/59544 (0.0%)
22:58:38.760: Error encoding with encoder 'streaming_h264'
22:58:42.370: [game-capture: 'Division'] capture window no longer exists, terminating capture
22:58:42.371: [game-capture: 'Division'] capture stopped
22:59:20.114: [rtmp stream: 'adv_stream'] User stopped the stream
22:59:20.114: Output 'adv_stream': stopping
22:59:20.114: Output 'adv_stream': Total frames output: 59534
22:59:20.114: Output 'adv_stream': Total drawn frames: 61898 (62109 attempted)
22:59:20.114: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 211 (0.3%)


No significant encoder or rendering lag.

22:59:36.535: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.604: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.693: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.788: warning: deprecated pixel format used, make sure you did set range correctly
22:59:36.925: warning: deprecated pixel format used, make sure you did set range correctly


Your webcam seems to be generating a lot of log errors.

22:59:37.397: - scene 'GAME SCENE':
22:59:37.399: - source: 'Witcher3_Game' (game_capture)
22:59:37.399: - source: 'WoW' (game_capture)
22:59:37.399: - source: 'ESO' (game_capture)
22:59:37.399: - source: 'Elite_Game' (game_capture)
22:59:37.399: - source: 'D3_Game' (game_capture)
22:59:37.399: - source: 'Tomb Raider' (game_capture)
22:59:37.399: - source: 'Path of Exile' (game_capture)
22:59:37.400: - source: 'Grim Dawn' (game_capture)
22:59:37.400: - source: 'Division' (game_capture)


This is generally not recommended. You're better off either keeping separately configured game captures in separate scene(s) or scene collections, and having one game capture in a scene which you reconfigure as needed. Multiple game capture sources can interfere and may use system resources even when not active.

23:01:33.542: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
23:04:41.534: adding 21 milliseconds of audio buffering, total audio buffering is now 85 milliseconds
23:08:16.596: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds
23:13:33.665: error: EncodePicture failed!: generic error (20)
23:13:33.665: [NVENC encoder: 'streaming_h264'] nvenc_encode: Error encoding: Unknown error occurred


Are you using any custom NVENC settings?

  • “Windows game mode off?” – I didn’t even know windows had such a option, the only thing I’ve seen on mine was related to Xbox live and such! I will investigate and turn it on to check if it improves. If I have it on it’s by default, should I disable it or leave it enable?

  • “Indicative of generally high system load” – this was when the game crashed and obs was saying that it was on stream but stopped streaming and the upload info was on 0kbps and I’ve turned it off and restarted OBS.

  • “Your webcam seems to be generating a lot of log errors” – How can I fix this, I’ve seen that while I was streaming “Elite Dangerous” if I did it without webcam I was getting a lot better performance than with it… but somehow it was stable enough on other games, any advices? I’m using a Logitech 920C and the resolution is actually at 640x480 as I use a small square on the bottom left of the screen.

  • Regarding the several game captures, I though as they’re “OFF” it wouldn’t be taking resources, as I have my overlays I was kinda thinking on using only one scene to avoid making multiple changes to the several scenes (before I have one scene per game, but anytime I made a change to the overlay I had to change literally 10 scenes. I’m not entirely sure if I have the other game captures in off mode when not in use, but I will double check on this… Again, some advice in here would be appreciated in what would be better to have?

  • “Are you using any custom NVENC settings?” – I believe I’m using only the default settings can I have any custom settings, if so how I can change those and which ones the better to change? (I do a rescalling from 3440x1440 to 1720x720(I think this is the value not sure))

If you can give me any help would be very much appreciated!!
 

Narcogen

Active Member
If Game Mode is on, turn it off. It starves other applications of GPU access-- like OBS.

If you go to PC Settings and don't see turning off Game Mode as an option, then your Windows is out of date and you should update it.

The eyeball icon next to sources is Hide/Show, not on/off. You can check this yourself-- add a Media source, pick a movie file on your computer. Make sure that Loop is ON, that "restart playback when source becomes active" is OFF, and "close file when inactive" is OFF.

You should now be able to show and hide the source as often as you like, and you'll notice that this does not interrupt the file playback. It's playing all the time-- you just can't see it. (True, we created this by unchecking "close file when inactive" but you'll notice that game captures don't have this option.)

Again, the recommended practice for game captures is one per scene. If you stream multiple games you can either just reconfigure that one game capture between sessions, or you can duplicate your scene collection and customize each collection for each individual game. Having a bunch of inactive game captures isn't the way to go here.

I do this myself by duplicating an entire scene collection and then altering the items that need changing. So each game I stream has its own scene collection-- they are all based on the same original scene collection that includes all the elements that are common to all games, but have customized individual elements for each game if necesary.

I don't know how to fix your webcam as I don't have one but OBS seems to be saying that it isn't configured properly. Not sure about that message.

Also not sure about the NVENC error-- encoding is running and it doesn't seem to interrupt the stream, but there is an error notice there.
 

Skymasterpt

New Member
Many thanks for the tips i will keep one scene for the game capture and i will then just change the game capture source... seems easier for me.

Another question that i have and i've read about it but not entirely sure if it's true or not... Is it better to change the Core afinity to the obs and the game will that improve the overall stability or not really?? (let's say OBS with 2 cores and the game with 4 cores)

In the NVENC settings i have also the "preset" set to "Low latency high quality" I've heard many people using very fast here but i think i have the "power" to use this normally ??
- Another question here is with my build is it worth changing it to x264 or keep the NVENC ??

In the video section the Downscale filter, which one is better the Bicubic (16 samples - the one i have now) or the Lanczos (32 samples) ??
 

Narcogen

Active Member
Another question that i have and i've read about it but not entirely sure if it's true or not... Is it better to change the Core afinity to the obs and the game will that improve the overall stability or not really?? (let's say OBS with 2 cores and the game with 4 cores)

No idea, I've never bothered with that. Perhaps someone else has thoughts.

In the NVENC settings i have also the "preset" set to "Low latency high quality" I've heard many people using very fast here but i think i have the "power" to use this normally ??
- Another question here is with my build is it worth changing it to x264 or keep the NVENC ??

These depend entirely on the nature of the content you're streaming. You've got a wide variety of game sources in your scenes, and they all produce different kinds of load on your machine and frames that will stress your GPU and your encoder differently. The log lines about audio buffering indicate you are having some issues that suggest to me you should stay with NVENC instead of CPU encoding, but the only way to find out for sure is to test yourself.

In the video section the Downscale filter, which one is better the Bicubic (16 samples - the one i have now) or the Lanczos (32 samples) ??

It isn't a question of better, it's a question of what you like the look of better:

https://obsproject.com/forum/threads/is-lancsoz-really-the-best-filter.13559/
 
Top