Hi all,
I'm running into an issue where I get a graphics stutter - a frame that takes ~50 ms to render, instead of the usual 1 ms or so.
I've tracked the cause down to audio capture of the browser.
When I return true from GetAudioParameters() to enable audio stream capture, then anywhere from 200 ms to 2.5 seconds after initiating capture, the application stutters, with a single frame that takes > 50 ms to render.
From previous experience, this type of graphics stutter is caused by the nvidia OpenGL drivers being blocked when trying to allocate or free memory, due to excessive memory alloc/frees on some other thread.
It's possible also some threading priority issue.
The stutter is relatively reliably reproduced - it happens maybe 80% of the time after initiating audio capture.
When I return false from GetAudioParameters(), no such stutter is caused.
For context, I'm using offscreen rendering in an OpenGL app, on Windows 10, GPU is RTX 3080. CEF build is 4951, built from source.
Any ideas / thoughts / workarounds?