macOS: the playing Client uses ~9 % CPU on an M2

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
macos, rust
Lĩnh vực
cli, performance

Hướng nghiên cứu

The payload names no files, so start by locating the terminal drawing loop and the kitty graphics image upload path in the Rust source. Profile the playing client on macOS with Instruments as the first checklist item, and compare with the Linux numbers in the report. Done means a measured before-and-after CPU figure on macOS, with the Visuals looking unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

While a song plays, the Client costs about 3 % CPU on Linux (plus ~5 % for kitty), but about 9 % on an M2 MacBook Air.

To do

  • Profile on macOS (Instruments): the terminal and the image transfer path (kitty graphics)
  • A frame whose image didn't change could skip the upload
  • Measure before and after; no visible change to the Visuals
Ngôn ngữ chính
Rust
Star
0
Fork
0
Merge trung bình
3 giờ 30 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của publicusr/singularity

Tất cả issue của publicusr/singularity

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.