Skip to content

[bug] High CPU when image in clipboard #280

@enormouspoon

Description

@enormouspoon

Describe the bug
RustCast seems to CPU spike when images are in the clipboard. CPU spike stays until clipboard is cleared.

To Reproduce

  1. Have RustCast running in the background
  2. Copy a picture to the clipboard, e.g., from file, preview, screenshot tool, etc
  3. View CPU spike in Activity Monitor

Expected behavior
RustCask to not spike CPU usage based on clipboard

Screenshots
Image

Which macos version? (please complete the following information):

  • MBP M3 Pro
  • MacOS Tahoe 26.5.1
  • RustCast 0.7.9
  • RustCast installed via homebrew

Additional context

  • Potentially related to issue High energy usage #169
  • I've noticed the CPU spikes correlate to image size: less for smaller images, higher for larger images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnot assignedIssues that are free for people to work on

    Type

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions