Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement freeze functionality #1

Draft
wants to merge 5 commits into
base: feature/threads
Choose a base branch
from

Conversation

AndreasBackx
Copy link
Owner

As of writing this does the freezing but still needs cleanup and the dispatching logic needs to be multi-output aware.

Resolves waycrate#62.

➜ hyperfine "target/release/wayshot --stdout > /dev/null"
Benchmark 1: target/release/wayshot --stdout > /dev/null
  Time (mean ± σ):     100.9 ms ±   5.5 ms    [User: 58.8 ms, System: 27.5 ms]
  Range (min … max):    93.4 ms … 110.5 ms    27 runs
@@ -174,18 +178,19 @@ impl WayshotConnection {
cursor_overlay: i32,
output: &WlOutput,
fd: T,
capture_region: Option<CaptureRegion>,
) -> Result<FrameFormat> {
) -> Result<(FrameFormat, FrameGuard)> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have afraid this will be a breaking change, and before, this api is used for screen cast, and in screen cast, frameguard is not needed

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, I haven't addressed backwards compatibility as this is only a draft PR. It'll be addressed once the PR is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants