Question / Help 4k 60 fps nvenc problem / obs preview lag when game is focused

Yasaka

Member
so i have a 1080 ti and when i capture games(in this example i try it with gta 5) with shadowplay, it works pretty well. 4k, 60fps without problems. but i prefer to use obs for my local recordings but i keep getting framedrops in obs. here is a log of my obs https://gist.github.com/404a0afae6dc32115f964a3502c5e4e8
i already tried different presets, different bitrate, different profile etc... no matter what i do i get framedrops in my recorded video. even lossless give me framedrops. i hope somebody can help me and give me the right settings. i already tried to record in 4k with my cpu but this wont work, too much cpu usage.
 
Last edited:

NicOnAcid

Member
did you replace an amd card with the 1080ti? there are many AMFEncoderVCE errors in your log. i think that should not happen. maybe there are some driver remnants from an amd card!?
 

Yasaka

Member
yeah i got 1080 ti yesterday before i had a r9 280. but i uninstalled the amd driver after i installed the nvidia driver. but could this affect the encoding power of nvenc in obs?
 

NicOnAcid

Member
ok. wanted to know this because it seems that the new creators update of windows making problems like this. but your version is not the creators update version.

we have to wait for other users who can tell you more about your log. im sorry that i cant help at this point.
 

NicOnAcid

Member
ive got problems with playing such large files in theese players too. i think this is just an software issue. but maybe its an bitrate problem or something else. unfortunately i dont know :/

deutsch geht übrigens auch ;) aber english wäre als ergänzung immer ganz gut, damit auch andere helfen können.
 
Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 144 (14.6%)

You are maxing our your GPU. Reduce in-game resolution and/or settings or cap your frame rate to give OBS more GPU headroom.
 

Yasaka

Member
Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 144 (14.6%)

You are maxing our your GPU. Reduce in-game resolution and/or settings or cap your frame rate to give OBS more GPU headroom.
thank you for your advice. but i wonder why the gpu is overloaded in obs on this conditions? shadowplay works prefectly with the same game/settings. so it should also be possible for obs.
 

Hanana

New Member
thank you for your advice. but i wonder why the gpu is overloaded in obs on this conditions? shadowplay works prefectly with the same game/settings. so it should also be possible for obs.
Hi , I think I have the same issue as you do , though mine is encoding lag as stated in my log , using the same NVENC encoder but with a 1070 paired with an i5 3570. I noticed the same thing as well with shadowplay not having frame freeze while OBS recording in a lower bitrate does which doesn't sound right at all
 

Yasaka

Member
so i experimented a bit, i cant even get a stable framerate when im downscaling to1440p. it drops not 20-30 frames but 5-10 frames. other interesting thing, now i used dark souls 3 for the test and obs have only problems, when there a things on the screen which are far away. obs even drops frames when i dont have an active recording. and this is the worst thing because i cant really change my encoding settings to get constantly 60 fps when the frame drops happens when no recording is active. other problem is no matter if i record with obs or shadowplay, vlc and media player cant play this videos proberly independently from the resolution. vlc has long freeze frames and media player has sometimes weird colours. also i think shadowplay has also little frame drops in a 4k video. but not that bad as obs. shadowplay can record 1440p without problems in 60fps so i think obs should do the same.
 
Last edited:

Yasaka

Member
Hi , I think I have the same issue as you do , though mine is encoding lag as stated in my log , using the same NVENC encoder but with a 1070 paired with an i5 3570. I noticed the same thing as well with shadowplay not having frame freeze while OBS recording in a lower bitrate does which doesn't sound right at all
ok i found out something really strange. when i play gta5 and have obs open then there are frame drops. but when obs has mainfocus and you play gta 5 while it has NOT the mainfocus, obs do NOT drop anything and it works perfectly. why is this happening? is this a windows 10 problem or a nvidia problem to prefer the focused window?
 

Hanana

New Member
ok i found out something really strange. when i play gta5 and have obs open then there are frame drops. but when obs has mainfocus and you play gta 5 while it has NOT the mainfocus, obs do NOT drop anything and it works perfectly. why is this happening? is this a windows 10 problem or a nvidia problem to prefer the focused window?
Care to elaborate what you meant by main focus? How do you play when gta5 isnt the main window?
 
Care to elaborate what you meant by main focus? How do you play when gta5 isnt the main window?

GTA5 has borderless window mode natively which allows for multitasking.

ok i found out something really strange. when i play gta5 and have obs open then there are frame drops. but when obs has mainfocus and you play gta 5 while it has NOT the mainfocus, obs do NOT drop anything and it works perfectly. why is this happening? is this a windows 10 problem or a nvidia problem to prefer the focused window?

I get this on my end as well for a GTX 1060 6gig on select games that use all GPU horsepower, and I run the GPU in PCIe x16 3.0. When you put OBS on top it doesn't drop FPS (or what it's called lagged frames based on the log) even if the game in the background is using all of the GPU such as many Unreal Engine games. I'm thinking putting the window on top puts GPU priority on it which explains it. However, if you put OBS as 'always on top' there is no difference when you focus on the game.
 
Top