sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
414 stars 94 forks source link

Very high GPU usage #236

Closed ranwer-dev closed 1 year ago

ranwer-dev commented 1 year ago

I have seen 1920x1080 screen recordings, without audio and with quality 70 and framerate 30, which takes almost 8% CPU & 30% GPU on my laptop. Whereas if I record the screen using FFmpeg, it takes 8% of CPU only, with No GPU used at all.

Why is this? Can we reduce GPU usage?

sskodje commented 1 year ago

I'll run some profiling and see

ranwer-dev commented 1 year ago

Did you run profiling?

sskodje commented 1 year ago

Yeah, it should be fixed in one of the recent commits. I've seen a drastic reduce in resource usage on my systems.