Closed peererror closed 6 years ago
The libraries defaults are 10 fps, you need to set it to what you want https://github.com/smasherprog/screen_capture_lite/blob/master/Example/Screen_Capture_Example.cpp#L102
@smasherprog what is max FPS you got when running on your side ?. im not sure it is my problem or not but i think i only got around 16 FPS :-s even i set framgrabber->setFrameChangeInterval(std::chrono::milliseconds(16));
my pc is not so bad : Nvidia 970 and i7 8700K
depends on your OS, screen resolution, and refresh rate.
OS Mac is the slowest. Windows is the next fastest Linux is the fastest
Resolution I run (3) 4k monitors at 60hz which is 3840 2160 4 *3 = 99 MB I capture about 15 -20 ish fps which is good considering how much data is being captured a second. This is 1-2 GB/s screen capturing.
Refresh rate If you have a 30hz refresh rate your BEST rate you can capture is 30fps.. But you will never hit this since there is synchronization that happens inside the OS.
The capturing is all about CPU.
Take a peek at the code to help improve the performance, This entire codebase is only a few files so its easy to figure things out..
try setting the interval to 0 ms and see what you get without doing any other work...
Hi, The library is capturing the screen at 10fps on windows 10.Here is the code I am using in On onNewFrame I have also comment out the code but still getting 10fps and its stuck on this number.