Question / Help Lag when downscaled and then set to 'Fit to screen'

Furi

New Member
So I've been trying to stream lately, for some reason when I downscale the resolution to 1280x720 and then use the 'fit to screen' option or resize it myself the stream lags every few seconds. When the game is not resized and stays in small window it doesnt lag at all. I dont drop frames and used different bitrates and nothing changed. Also I've noticed that it lagged only while streaming CSGO even though I didnt drop frames in game and it was running smoothly, streaming BF4 was fine

Link to last Log File :
https://gist.github.com/7f465c8a62feb65e5760

Thanks for any help.
 
So I've been trying to stream lately, for some reason when I downscale the resolution to 1280x720 and then use the 'fit to screen' option or resize it myself the stream lags every few seconds. When the game is not resized and stays in small window it doesnt lag at all. I dont drop frames and used different bitrates and nothing changed. Also I've noticed that it lagged only while streaming CSGO even though I didnt drop frames in game and it was running smoothly, streaming BF4 was fine

Link to last Log File :
https://gist.github.com/7f465c8a62feb65e5760

Thanks for any help.
you failed to mention you are streaming through a VM.
profile needs to be set to main, other than that, all looks fine.
 
Had no idea I did, bbut that doesnt really explain why I have this issue does it?
Yeah you would know if you were using a VM to run OBS from, and yes it could affect performance but since thats not the case... Once you get your preview screen correct, go ahead and disable it and see if the problem persists right click on the preview, click preview again then uncheck "enable view".
 
03:30:59: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 1048576 (buffer: 331 / 293888)

03:31:00: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 2097152 (buffer: 0 / 293888)

03:34:17: Capture window 0x001304B0 invalid or changing, terminating capture

03:34:27: FlushBufferedVideo: Flushing 24 packets over 767 ms

03:34:28: Total frames encoded: 13262, total frames duplicated: 3605 (27.18%)

03:34:28: Number of frames skipped due to encoder lag: 2914 (21.97%)

03:34:28: Total frames rendered: 10023, number of late frames: 262 (2.61%) (it's okay for some frames to be late)
You're dropping and skipping a metric butt-ton of frames. Your listed CPU should be able to handle this fine, so it appears you have other stuff running that is maxing out the CPU. Your video frame thread is running below 4ms which is quite speedy for all of the conversion/resize/compositing.

Again have to ask if you're running OBS and/or the game in a virtual machine (I knew a friend with a Mac who tried to do this, and it choked and died for obvious reasons... all to avoid having to bootcamp over into Windows) which could cause major problems. I'd also suspect that passing large amounts of network traffic could potentially have an impact, but without knowing more about your setup cannot comment on that.

Short version, your CPU is choking and dying while encoding for no log-visible reason. Make sure it's not thermally downclocking itself or parking cores, and that there isn't anything else CPU-heavy running in the background. What kind of CPU loads are you normally seeing while this is going on? I'd also really recommend re-ordering your network interfaces so as NOT to go through the virtual interface, and instead go out on the actual NIC by default.
 
Im not running a virtual machine at all. Just tried to test it again 85-90% load on the cpu at all times, temps not above 53. And all I have running is chrome,steam and teamspeak.
 
Im not running a virtual machine at all. Just tried to test it again 85-90% load on the cpu at all times, temps not above 53. And all I have running is chrome,steam and teamspeak.
Are you watching your own stream in chrome? if so, switch to Internet Explorer. it has better hardware acceleration by A LOT.
 
Not watching my stream at all, just tried shadowplay and no lags whatsoever.
you could use NVENC (which is what shadow play uses). Also, if you are using OBS to stream, make sure there is no other program running in the background that streams as well (like shadowplay). also make sure that Steam's in-home streaming and steam's Broadcast are also disabled.
 
Back
Top