[BUG] Preview in Main Window causes rendering lags while Windowed Projector does not

Okay, so I'm recording in 4K.
And in games with heavey load you'll get this rendering lags/stalls like this:


23:24:41.300: ==== Recording Start ===============================================
23:24:41.300: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/@OBS/2021-04-13 23-24-41.mp4'...
23:25:41.817: Stopping recording due to hotkey
23:25:42.758: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/@OBS/2021-04-13 23-24-41.mp4' stopped
23:25:42.758: Output 'adv_file_output': stopping
23:25:42.758: Output 'adv_file_output': Total frames output: 3632
23:25:42.758: Output 'adv_file_output': Total drawn frames: 2892 (3687 attempted)
23:25:42.758: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 795 (21.6%)
23:25:42.758: ==== Recording Stop ================================================

So, no encoding lag, this lag is the result of high gpu usage ... well this is what I thought until now.

I already knew when I disable preview, the lags are also gone. BUT
IF YOU ENABLE Windowed Projector the lags are also gone!

23:26:11.226: ==== Recording Start ===============================================
23:26:11.226: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/@OBS/2021-04-13 23-26-11.mp4'...
23:28:11.207: Stopping recording due to hotkey
23:28:12.071: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/@OBS/2021-04-13 23-26-11.mp4' stopped
23:28:12.071: Output 'adv_file_output': stopping
23:28:12.071: Output 'adv_file_output': Total frames output: 7199
23:28:12.071: Output 'adv_file_output': Total drawn frames: 7249 (7251 attempted)
23:28:12.071: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 2 (0.0%)
23:28:12.072: ==== Recording Stop ================================================

So I have a perfectly smooth recording in 4k

So... there must be some kind of bug while activating the preview in the main window causes these rendering lags and the Window Projector does not (while preview in main window is disabled)

I know many of you struggle with rendering langs, so I think this little discovery could help you and maybe the developers find a way to fix this.

I'm also a developer but I'm not familiar with windows or c++ coding, but I think it may has something to do with window rendering, maybe a combination with other components rendered in the same window. I first thought the audio bars would cause this lags, but is has to be something else.

for now, i can live with this workaround and I hope you developers can find a solution to finally get rid off rendering lags in OBS.
 
Back
Top