Question / Help Lag in OBS not game ?

andybeech

Member
HI recently upgraded from my fx6100 AMD Black Edition build to a intel I5 7500 with 8gb DDR4 Corsair Vengeance LPX gigabyte ga-250-hd3p 760gtx windforce GPU soundblaster z and avermedia c985 120gb ssd and 500gb HDD
Im trying to stream GTA V but in obs game capture its self is lagging the game doesnt lag just in OBS and the stream. I have tried;
Reinstalling obs
Remaking the scenes
checking all drivers are up to date
tried using window capture
Even with OBS not streaming just idle its lagging
GTA V is currently at normal settings also.
Here is my log
https://gist.github.com/2a2f93b4de6603706c618ea15f820c45
Thanks
 
I'm not a streamer and never will be, will try to lend a hand though.

Your streaming settings look fine, however there is a guide below by @NerdOrDie if you want to take a look which is the best guide I've seen for setting up OBS Studio for streaming:
https://obsproject.com/forum/resources/full-video-guide-for-obs-studio-and-twitch.377/

Using NVENC encoder:
13:49:19.738: Output 'adv_stream': Number of skipped frames due to encoding lag: 242 (4.6%)
13:49:19.738: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 749 (14.3%)
Your CPU is struggling quite a bit to keep up with the load of streaming and game play at the same time.
Your GPU is really struggling to keep up with streaming and game play at the same time.
Using x264 encoder:
13:50:49.079: Output 'adv_stream': Number of skipped frames due to encoding lag: 1011 (574.4%)
13:50:49.079: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1033 (79.5%)
Your CPU and GPU are just not at all handling the extra load of streaming whilst playing the game.

Some things to look at for troubleshooting:
If you don't, cap your fps to 60Hz and try streaming again. This by itself should help a lot.
Lowering in-game settings a tad more to reduce some of the load of your CPU & GPU should help a tad. Shadows in GTA V was always the biggest killer for me, after Anti-Aliasing which I don't bother using due to the poor implementation of it.
Disable the preview window by right-clicking on it and selecting 'Disable Preview Window', once you can see the game being hooked successfully.
Try running one monitor only, this will also help reduce a tad the load on your GPU and CPU.

Streaming itself is roughly 10-20% more resource intensive than recording, dependent upon your encoder settings and the game you are trying to stream.
 
Last edited:
Use the -frameLimit 1 launch option in GTA V to cap the FPS and reduce CPU & GPU load. This is assuming you're running a 60Hz monitor. If you got a 120 Hz or 144 Hz display, switch the -frameLimit command line to 2 (which halves the FPS cap over the monitor's refresh rate).
 
I'm not a streamer and never will be, will try to lend a hand though.

Your streaming settings look fine, however there is a guide below by @NerdOrDie if you want to take a look which is the best guide I've seen for setting up OBS Studio for streaming:
https://obsproject.com/forum/resources/full-video-guide-for-obs-studio-and-twitch.377/

Using NVENC encoder:
13:49:19.738: Output 'adv_stream': Number of skipped frames due to encoding lag: 242 (4.6%)
13:49:19.738: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 749 (14.3%)
Your CPU is struggling quite a bit to keep up with the load of streaming and game play at the same time.
Your GPU is really struggling to keep up with streaming and game play at the same time.
Using x264 encoder:
13:50:49.079: Output 'adv_stream': Number of skipped frames due to encoding lag: 1011 (574.4%)
13:50:49.079: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1033 (79.5%)
Your CPU and GPU are just not at all handling the extra load of streaming whilst playing the game.

Some things to look at for troubleshooting:
If you don't, cap your fps to 60Hz and try streaming again. This by itself should help a lot.
Lowering in-game settings a tad more to reduce some of the load of your CPU & GPU should help a tad. Shadows in GTA V was always the biggest killer for me, after Anti-Aliasing which I don't bother using due to the poor implementation of it.
Disable the preview window by right-clicking on it and selecting 'Disable Preview Window', once you can see the game being hooked successfully.
Try running one monitor only, this will also help reduce a tad the load on your GPU and CPU.

Streaming itself is roughly 10-20% more resource intensive than recording, dependent upon your encoder settings and the game you are trying to stream.
Cheers Ill have a look at his guide again to see if I can improve anything, as for the CPU and GPU struggling would getting a better gpu like a 1060gtx help as only just brought the i5 7500 as thought it might be good for streaming as read i5 4670k was min spec. Also with the frame cap what is the best way to do this thanks.
Use the -frameLimit 1 launch option in GTA V to cap the FPS and reduce CPU & GPU load. This is assuming you're running a 60Hz monitor. If you got a 120 Hz or 144 Hz display, switch the -frameLimit command line to 2 (which halves the FPS cap over the monitor's refresh rate).
Thanks for the help I have done -frameLimit 1 but seems to cap at 23-24 frames any idea why and not 60fps thanks
 
You have a few options for capping your fps:
The -frameLimit 1 in launch options should do the trick, the 1 is for a 1 to 1 ratio of your monitor refresh rate, any value above is exponential, 2 for 1/2, etc.
Use RTSS (Riva Tuner Statistics Server) to cap your fps, this is a component of MSI AfterBurner, a graphics card overclocking utility. Alternatively you could use EVGA Precision, which has its own on-screen statistics display utility built in.
You could try using the nVidia Inspector software to cap your in-game fps by setting up a game profile for GTA V.

Doing a quick search I found this:
-refreshrate 60 -framelimit 1
Try that in place of just the -framelimit 1 launch option, hopefully that will define the refresh rate parameter as well as lock it to 60 with the -framelimit 1 launch command.

The best thing you can do is to try and limit your fps, this will first and foremost help your recordings/streams via OBS by reducing system load when running your game/s. Lowering your graphic settings a tad if just limiting your fps doesn't help, will help a bit.
Turning off the preview window once you verify OBS has hooked into the game should help a little as well.
Your gtx760 is a little like my r9 290x, getting a bit long in the tooth yet still strong.

A more powerful GPU will most certainly assist in regards to performance overall, especially when using the NVENC encoder to record/stream. Another limiting factor for you is that with your i5 7500 you only have 4 cores, even when using the NVENC encoder your CPU has to deal with the load of the data transfer from and to GPU, disk, etc. When streaming it can add another 10-20% load, dependent upon settings and bandwidth usage. For streaming and recording games the more cores you have the better the performance and more quality you can push out.

If you still have your AMD setup, you might be able to do a 2 PC stream setup, where you have one PC dedicated to doing the stream and one PC dedicated to the game.

https://help.twitch.tv/customer/portal/articles/1988680-broadcasting-with-two-computers#hardware
I could not find a guide with for a capture card setup, whether it be a single or dual PC environment, sorry.
 
You have a few options for capping your fps:
The -frameLimit 1 in launch options should do the trick, the 1 is for a 1 to 1 ratio of your monitor refresh rate, any value above is exponential, 2 for 1/2, etc.
Use RTSS (Riva Tuner Statistics Server) to cap your fps, this is a component of MSI AfterBurner, a graphics card overclocking utility. Alternatively you could use EVGA Precision, which has its own on-screen statistics display utility built in.
You could try using the nVidia Inspector software to cap your in-game fps by setting up a game profile for GTA V.

Doing a quick search I found this:
-refreshrate 60 -framelimit 1
Try that in place of just the -framelimit 1 launch option, hopefully that will define the refresh rate parameter as well as lock it to 60 with the -framelimit 1 launch command.

The best thing you can do is to try and limit your fps, this will first and foremost help your recordings/streams via OBS by reducing system load when running your game/s. Lowering your graphic settings a tad if just limiting your fps doesn't help, will help a bit.
Turning off the preview window once you verify OBS has hooked into the game should help a little as well.
Your gtx760 is a little like my r9 290x, getting a bit long in the tooth yet still strong.

A more powerful GPU will most certainly assist in regards to performance overall, especially when using the NVENC encoder to record/stream. Another limiting factor for you is that with your i5 7500 you only have 4 cores, even when using the NVENC encoder your CPU has to deal with the load of the data transfer from and to GPU, disk, etc. When streaming it can add another 10-20% load, dependent upon settings and bandwidth usage. For streaming and recording games the more cores you have the better the performance and more quality you can push out.

If you still have your AMD setup, you might be able to do a 2 PC stream setup, where you have one PC dedicated to doing the stream and one PC dedicated to the game.

https://help.twitch.tv/customer/portal/articles/1988680-broadcasting-with-two-computers#hardware
I could not find a guide with for a capture card setup, whether it be a single or dual PC environment, sorry.
Thanks that is a great detailed answer yea the framelimit 1 did help alot will try see if it works at 60fps as be nicer to be able to.
I brought the i5 7500 only causing intel had a better single thread then my AMD and its costed £50 less then the 7600k plus technically £200 less if you include the board etc but i will try using my AMD as a stream pc as did think about doing that when I brought just need get a PSU and a GPU for it as it doesnt have built in graphics. Any suggestions on a cheap GPU i could get for it.
 
From what I have read, you want your strongest CPU in the system that is doing the encoding/streaming. That being said, any advice I give you should be taken ad-lib as I don't stream and have no plans in the future to.

If you were looking to do a 2 PC stream setup, you could probably go the route of upgrading your main PC with a new GPU, throwing in your current GPU into the 2nd (Stream) PC. That is of course, if money is not a limiting factor (As it is for me due to not having work at present)

If money is a limiting factor, you could possibly go the route of using your FX-6100 & gtx760 to encode at a higher bitrate, then stream to your 2nd PC which then re-encodes using Intel Q-Sync x264 encoder to stream to Twitch/YouTube (I could be completely wrong on this one as I don't stream and don't have knowledge on setting up a dual PC streaming setup)

PCPartPicker is a good place to determine cost factor for upgrading/building entire systems:
http://pcpartpicker.com/
 
From what I have read, you want your strongest CPU in the system that is doing the encoding/streaming. That being said, any advice I give you should be taken ad-lib as I don't stream and have no plans in the future to.

If you were looking to do a 2 PC stream setup, you could probably go the route of upgrading your main PC with a new GPU, throwing in your current GPU into the 2nd (Stream) PC. That is of course, if money is not a limiting factor (As it is for me due to not having work at present)

If money is a limiting factor, you could possibly go the route of using your FX-6100 & gtx760 to encode at a higher bitrate, then stream to your 2nd PC which then re-encodes using Intel Q-Sync x264 encoder to stream to Twitch/YouTube (I could be completely wrong on this one as I don't stream and don't have knowledge on setting up a dual PC streaming setup)

PCPartPicker is a good place to determine cost factor for upgrading/building entire systems:
http://pcpartpicker.com/
Ok thanks im looking into it currently got most of the parts I needed again to rebuild by AMD pc just need a GPU was tempted to till I can get a 1060gtx was too buy a cheap gpu but decent maybe used to throw in the AMD build for now. As also plan to use it as a guest gaming PC for GTA V etc. Also I still cant get the fps cap to go above 25fps even using vsync and my monitor is 60hz ? without I get 230fps in GTA V and 250fps in CSGO but cant stream that high fps which is odd XD
 
Over the weekend I'll have time to install GTA V again to troubleshoot the fps limiter issue.
I never actually used it as I just used Riva Tuner Statistics Server (bundled with MSI AfterBurner) though I have seen on forums that people can be banned for it, without much luck at being un-banned, though I never was when I played online for the little time I did. The amount of players reportedly hacking I would not be at all surprised if it was hackers claiming to be running RTSS that were banned.
 
Over the weekend I'll have time to install GTA V again to troubleshoot the fps limiter issue.
I never actually used it as I just used Riva Tuner Statistics Server (bundled with MSI AfterBurner) though I have seen on forums that people can be banned for it, without much luck at being un-banned, though I never was when I played online for the little time I did. The amount of players reportedly hacking I would not be at all surprised if it was hackers claiming to be running RTSS that were banned.
Cheers and oh right that is an odd thing to get banned for doing. I once got banned as only had the singleplayer modded but I had turned them off before going online. Now I just dont have any mods at all on.
 
Really sorry to say this, I have not got around to installing GTA V this weekend, tomorrow I'm planning on starting the installation process before I head out though, should have an idea if the frame limit launch option works later in the afternoon (It's 5:15pm/17:15 Sunday, here in Australia)
 
Really sorry to say this, I have not got around to installing GTA V this weekend, tomorrow I'm planning on starting the installation process before I head out though, should have an idea if the frame limit launch option works later in the afternoon (It's 5:15pm/17:15 Sunday, here in Australia)
Ok not to worry :) let me know when you do thanks
 
So tested the launch option:
-framelimit 1
It works for me, sets it to 59.9/60 fps.

Not sure what the issue is as to why you would be capped at 25fps?

In your source - settings for GTA V game capture, do you have 'Limit Capture Framerate' checked? Should be unchecked if by chance you do (Maybe this is causing the issue, though have never tested it myself)

Can you try a 720p60fps stream attempt to see if that corrects the issue, I don't stream myself so perhaps the 30fps limit is somehow causing it.

Really clutching at straws for ideas...
 
So tested the launch option:
-framelimit 1
It works for me, sets it to 59.9/60 fps.

Not sure what the issue is as to why you would be capped at 25fps?

In your source - settings for GTA V game capture, do you have 'Limit Capture Framerate' checked? Should be unchecked if by chance you do (Maybe this is causing the issue, though have never tested it myself)

Can you try a 720p60fps stream attempt to see if that corrects the issue, I don't stream myself so perhaps the 30fps limit is somehow causing it.

Really clutching at straws for ideas...
Thanks no the help is great thanks:D think I worked it out what it is I had it at borderless window so it was setting the refresh as auto which can not change, unless there is a way of changing it. When it is in fullscreen I can do 60hz which locks at 60fps which does work fine.But it seems to end up in a window some reason at fullscreen when start GTA back up.
So seems like that was the issue unless theres a way to change the refresh rate while in border less.
 
Maybe that is not just an issue on my system after all, every time I ran tests for fps benchmarking after I installed GTA V, it would continuously load in windowed maximized, forcing me to Alt+Enter to switch it to full screen mode (Which I was doing automatically) Thought it was only V-Sync affected by non-full screen modes for functionality.
 
Maybe that is not just an issue on my system after all, every time I ran tests for fps benchmarking after I installed GTA V, it would continuously load in windowed maximized, forcing me to Alt+Enter to switch it to full screen mode (Which I was doing automatically) Thought it was only V-Sync affected by non-full screen modes for functionality.
oh right that is strange yea is yours set to windowed in the options or fullscreen.
 
Full screen, my system for some reason does not play well in windowed/border less mode for just about every game I have. I think it's my r9 290x, as my 6970 had no issues in any mode.
 
Full screen, my system for some reason does not play well in windowed/border less mode for just about every game I have. I think it's my r9 290x, as my 6970 had no issues in any mode.
oh ok could be im running a geforce 760gtx windforce oc which seems to be fine in any mode, looking at getting a 1060 gtx or 1080gtx.
 
Back
Top