-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: simplify sleep before next frame snapshot
Before this commit kmsgrab, x11grab, cuda used a "busy" wait that did not in fact keep the thread busy since it called `sleep_for()`. The whole waiting period is now slept for at once. Wlgrab used a true busy wait for a third of the waiting time. This entailed a rather high CPU usage. The watiting method has been aligned to the simplified method of the other Linux capture backends. (Benchmark data can be found in the discussion of PR #2333.)
- Loading branch information
1 parent
b8b44cb
commit 0b77071
Showing
4 changed files
with
13 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters