Open kesumin opened 1 year ago
Hmm. Missed frames are usually caused by GPU overload, but the script doesn't use GPU at all. It simply accesses the values thru OBS API. The only obvious reason that I see is if your Update Delay is too small.
But there is also a bug which causes the update to happen twice in a time frame instead of twice. It was not happening before, but started after specific OBS. Possibly due to changes to scripting system? Possibly the same kinda bug may happen to you?
Anyway, my knowledge of lua has increased over the past year so I was thinking of rewriting the script from scratch. For now I can only suggest you to try older OBS version.
Try new version from Release Page and let me know if the issue persists.
Actually, I can see 21:37:31.415: [obs-scripting]: Loaded lua script: ljsocket.lua
line in your logs and i dont think its right. Have you added this file to OBS Scripts? You only should have added OBS-Script-on-Stream.lua
. ljsocket.lua
in older version should be just located in the same folder as main file.
Sorry about the ridiculously long wait and thank you for the quick update!
I did have ljsocket.lua in my scripts but has now been removed. The error still seems to persist. I've also attempted creating a new scene to test the issue but frames missed to render lag is still at about 1.9%. It's still significantly better than my production scene. Issue may be amplified by something in the scene? I used to ues assets and tools running from a network device but have since moved everything local. Since OBS itself is also local, I don't believe it to be any issue related to hardware. GPU usage is 1-<1% average in the test scene.
Waiting doesn't cost me anything, so no problem! :3
In fact, OBS can sometimes mess up scene/source configuration. Here's what you can try:
1) Update OBS to v29
just in case;
2) Launch OBS in admin mode
again (because it says D3D11 GPU priority setup failed (not admin?)
);
3) Set Settings -> Advanced -> Process Priority
to High
;
4) Create new profile
and new scene collection
and just create one Text (GDI+) Source
for the script to use, to see if its any scenes/sources that are causing it;
5) Change the encoder to software x264
to see if it has any effect (I assume you are using hardware NVENC
encoder, in which case you can also try NVENC via FFmpeg
provided by StreamFX plugin, which is simply a better implementation of the encoder).
I've been noticing huge rendering lag with an average of 13.5% frames missed compared to an average of 0.6% while disabled (through the plugin).
I'm currently using OBS 23.0.3 (x64) with OBS Stats on Stream 1.3. Bot is disabled. Here is my configuration:
This issue is also present while OBS is run in administrator mode.
Is there any solution for this and/or is there anyone else also experiencing this issue?