Question / Help FPS drops only with some games

roxart

New Member
Hi All

ive been streaming with these settings with magic the gathering online and also league of legends.

today I wanted to stream Shogun Shadow Tactics and I get massive lags/fps drops (in the stream not the game)

I tried also with window capture full screen everything also with exactly the same settings as for league of legends, still the same.

I dont get why this can be - any clues?

thats the part of log i did first with league of legends, small fps drop / lag at start then all fluid (friend watched stream) then shogun all just lagging / stuttering

00:30:18.627: ==== Streaming Start ===============================================
00:31:35.951: [rtmp stream: 'adv_stream'] User stopped the stream
00:31:35.951: Output 'adv_stream': stopping
00:31:35.951: Output 'adv_stream': Total encoded frames: 4744
00:31:35.951: Output 'adv_stream': Total drawn frames: 4744
00:31:35.951: Output 'adv_stream': Number of skipped frames due to encoding lag: 15 (0.3%)
00:31:35.951: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 166 (3.5%)
00:31:35.954: ==== Streaming Stop ================================================
00:32:44.327: ---------------------------------
00:32:44.327: [x264 encoder: 'streaming_h264'] preset: veryfast
00:32:44.327: [x264 encoder: 'streaming_h264'] settings:
00:32:44.327: rate_control: CBR
00:32:44.327: bitrate: 2000
00:32:44.327: buffer size: 2000
00:32:44.327: crf: 0
00:32:44.327: fps_num: 60
00:32:44.327: fps_den: 1
00:32:44.327: width: 1920
00:32:44.327: height: 1080
00:32:44.327: keyint: 120
00:32:44.327: vfr: off
00:32:44.327:
00:32:44.327: [x264 encoder: 'streaming_h264'] custom settings: scenecut=0
00:32:44.331: [Media Foundation AAC: 'Track1']: encoder created
00:32:44.331: bitrate: 160
00:32:44.331: channels: 2
00:32:44.331: sample rate: 44100
00:32:44.331: bits-per-sample: 16
00:32:44.331:
00:32:44.332: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-ams.twitch.tv/app...
00:32:44.359: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
00:32:46.061: [rtmp stream: 'adv_stream'] Connection to rtmp://live-ams.twitch.tv/app successful
00:32:46.064: ==== Streaming Start ===============================================
00:33:35.548: [rtmp stream: 'adv_stream'] User stopped the stream
00:33:35.548: Output 'adv_stream': stopping
00:33:35.548: Output 'adv_stream': Total encoded frames: 3073
00:33:35.548: Output 'adv_stream': Total drawn frames: 3072
00:33:35.548: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 979 (31.9%)
00:33:35.551: ==== Streaming Stop ================================================
 
00:24:33.723: Output 'adv_stream': Number of skipped frames due to encoding lag: 2995628966 (121.6%)
00:24:33.723: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1753 (57.5%)

Your CPU cannot keep up with live-encoding your video.

Try reducing your resolution to 720p, decrease FPS to 30, or use the superfast or ultrafast CPU preset (will decrease quality). You should also use the Lanczos filter to increase quality.
 

roxart

New Member
Hi I tried everything you said (should be somewhere in that log) however I can also do that again tomorrow - going to sleep now - if it would help if I do it again

Talking about downscaled res in Video settings right? my normal res is 2560 1440 on screen.
 

roxart

New Member
so i did your settings again - this happens: and the cpu % in obs doesnt go very high so i don't understand...? :(


Code:
09:26:14.366: Created profile 'second' (duplicate, second)
09:26:14.366: ------------------------------------------------
09:26:38.584: ---------------------------------
09:26:38.584: video settings reset:
09:26:38.584:     base resolution:   2560x1440
09:26:38.584:     output resolution: 1280x720
09:26:38.584:     downscale filter:  Lanczos
09:26:38.584:     fps:               30/1
09:26:38.584:     format:            NV12
09:26:38.588: Settings changed (video)
09:26:38.588: ------------------------------------------------
09:26:56.017: Settings changed (outputs)
09:26:56.017: ------------------------------------------------
09:27:13.224: ---------------------------------
09:27:13.225: [x264 encoder: 'streaming_h264'] preset: superfast
09:27:13.225: [x264 encoder: 'streaming_h264'] settings:
09:27:13.225:     rate_control: CBR
09:27:13.225:     bitrate:      2000
09:27:13.225:     buffer size:  2000
09:27:13.225:     crf:          0
09:27:13.225:     fps_num:      30
09:27:13.225:     fps_den:      1
09:27:13.225:     width:        1280
09:27:13.225:     height:       720
09:27:13.225:     keyint:       60
09:27:13.225:     vfr:          off
09:27:13.225:
09:27:13.225: [x264 encoder: 'streaming_h264'] custom settings: scenecut=0
09:27:13.230: [Media Foundation AAC: 'Track1']: encoder created
09:27:13.230:     bitrate: 160
09:27:13.230:     channels: 2
09:27:13.230:     sample rate: 44100
09:27:13.230:     bits-per-sample: 16
09:27:13.230:
09:27:13.230: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-ams.twitch.tv/app...
09:27:13.250: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
09:27:15.005: [rtmp stream: 'adv_stream'] Connection to rtmp://live-ams.twitch.tv/app successful
09:27:15.007: ==== Streaming Start ===============================================
09:28:25.886: [game-capture: 'Shogun'] capture window no longer exists, terminating capture
09:28:29.802: [rtmp stream: 'adv_stream'] User stopped the stream
09:28:29.802: Output 'adv_stream': stopping
09:28:29.802: Output 'adv_stream': Total encoded frames: 2297
09:28:29.802: Output 'adv_stream': Total drawn frames: 2297
09:28:29.802: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 581 (25.3%)
09:28:29.806: ==== Streaming Stop ================================================
 

EBrito

Active Member
09:28:29.802: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 581 (25.3%)
Try 720p 30 FPS
*EDIT*
I saw previous log with 1080p 60 FPS.
Last log is partial.

Maybe you are rescaleng twice:
rescale ONLY in video settings and leave it unchecked in output settings,
 

roxart

New Member
last log is not partial, its everything after i changed settings coming after the previous log to show with the 720 and 30fps
also i only rescale in video and not in output tab

so i really dont understand how league of legends works with no probs and shogun just doesnt, i think also civilization 6 doesnt work, but i would have to try properly if that could help?
 
Because League isn't very GPU-intensive and for the other games you're pushing the GPU which is generating lagged frames in the log. Reduce load by capping the FPS (via Nvidia Profile Inspector or using Vsync) and maybe lower your GPU-based settings in the game.
 

roxart

New Member
Hi ok I can try that, howver playing league I have ~200 fps and that works. hmmm
So should I cap it at 60?
 
Top