Closed karasusan closed 10 months ago
This PR improves a CPU load of Render thread when using video encoding with OpenGL or GLES. It uses GLSync instead of glFinish to sync GPU and CPU.
Specifically, the process time of UnityVideoTrackSource.OnFrameCaptured is dramatically reduced.
This PR improves a CPU load of Render thread when using video encoding with OpenGL or GLES. It uses GLSync instead of glFinish to sync GPU and CPU.
Specifically, the process time of UnityVideoTrackSource.OnFrameCaptured is dramatically reduced.
Before
After