Lagging with OBS Studio recording
Describe the bug
Hello, I'm very happy to use Rnote, but there's a problem with OBS recording. At the beginning everything's fine, but after 6 or 7 mins it starts to lag, not heavily, but couldn't write fast normally.
*Screen Recording
Here's what I've recorded, note the lag while writing the word "Canonical".
Desktop (please complete the following information):
- OS: Windows 10 22H2
- App Version: Rnote v0.12.0
- Installation Source: Install using Winget
- Processor: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
- GPU: NVIDIA GeForce RTX 3050 Ti Laptop GPU
- Installed RAM: 16.0 GB (15.8 GB usable)
- Input Source: External Graphics Tablet - Huion
OBS recording settings
- Source Type: Window Capture
- Quality: High, bitrate of 2300
- Format: MPEG-4(.mp4)
- Video Encoder: Hardware(QSV, H.264)
- Audio Encoder: AAC
And I've noticed there's no lag without recording, so I'm wondering if it's the problem with my OBS settings.
Thanks a lot.
Describe the bug Hello, I'm very happy to use Rnote, but there's a problem with OBS recording. At the beginning everything's fine, but after 6 or 7 mins it starts to lag, not heavily, but couldn't write fast normally.
I think it could be related to the problem in #1436. You can also try to see if as the writings to the file increase (possibly more pages) you notice rendering problems. The problem seems to occur if the document starts to be large and in the case of CPUs that are not too high performing or that are more stressed (e.g. with screen recording)
Describe the bug Hello, I'm very happy to use Rnote, but there's a problem with OBS recording. At the beginning everything's fine, but after 6 or 7 mins it starts to lag, not heavily, but couldn't write fast normally.
I think it could be related to the problem in #1436. You can also try to see if as the writings to the file increase (possibly more pages) you notice rendering problems. The problem seems to occur if the document starts to be large and in the case of CPUs that are not too high performing or that are more stressed (e.g. with screen recording)
Thanks for the link! Seems to me the same problem as yours, I've tried writings without recording, and everything goes fine even after 6 mins full of stuff, so I suppose it's the problem of OBS. And the usage of CPU is quite little when recording and writing, so just no idea what's going on.
perhaps gpu related? Do you have gpu acceleration enabled in obs? There could be some kind of interference there.
Well I don't think it's the GPU problem, I've tried several settings with OBS and monitoring the usage, basically under 25%.
And I've noticed an interesting phenomenon, the app runs better when I turn on the visual debugging, and got more lagged while deactivate it. I've also tried different pen settings in Rnote, nothing change in terms of lag.
So I think it has something to do with storage, cause after 200 strokes or more stored, even if you've cleared the document, it still lags, unless you relaunch the app.
Hello, after trying some optimizations for #1436 , performance should have improved. Could you try the debug build for windows from here and check whether or not things are smoother or not ? https://github.com/Doublonmousse/rnote/actions/runs/15496631682
[!CAUTION] There was a change of fileformat, so reading then saving a rnote file will update to the new fileformat. To be extra safe you should backup or copy your files before opening them with this version to test
So I think it has something to do with storage, cause after 200 strokes or more stored, even if you've cleared the document, it still lags, unless you relaunch the app.
Does ram usage stay somewhat high even after the clear (like demonstrably higher than a freshly launched rnote on an empty canvas) ? (I don't see anything obvious that'd be left in memory after a clear in rnote's code, though it's something I can try to pinpoint if that seems to be the case)
Hello, sorry for this delay. I've been monitoring usage of GPU and CPU throughout the recordings, and in 100 tests they are all around 30% usage even when lagging heavily. I've tried several types of OBS recording configurations, and some tablet configurations (even changed marque lol), just not help. Cause it's fluent without OBS, so I didn't notice this, I'll try it tomorrow to see how will it goes. Thanks for your effort!
Hello, sorry for this delay. I've been monitoring usage of GPU and CPU throughout the recordings, and in 100 tests they are all around 30% usage even when lagging heavily. I've tried several types of OBS recording configurations, and some tablet configurations (even changed marque lol), just not help. Cause it's fluent without OBS, so I didn't notice this, I'll try it tomorrow to see how will it goes. Thanks for your effort!
Hi, I recommend you try a test recording with OBS using the version found in the link provided by Doublonmousse. Clicking the link will take you to a page where you can find the file rnote-win-installer-artifact, a zip file containing the installation of a debug build. After installing it, you can test to see if the problem recurs under the same conditions as before. Personally, my problem was solved, and I can say that the overall user experience has improved.
Yes, problem solved, it's working fine with OBS, no lagging again. Thanks!!!