Spike: can Studio's WebView (WKWebView) decode device-view frames at 15 fps or more?

Đang mở
#448 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
flutter, go
Lĩnh vực
mobile, testing-qa

Hướng nghiên cứu

The issue names no repository files; start by locating Studio’s Wails WebView harness and the device view hub that accepts loopback WebSocket connections. Rerun the harness in an unlocked, visible macOS session and record rendered fps and decode time for each frame size. Done means reporting the measurements and whether 603x1311 frames reach 15 fps without dropped-frame growth.

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

Mô tả

area/studio documentation

Question: can a page opened in Studio's Wails WebView on macOS (WKWebView) connect to ws://127.0.0.1, receive JPEG frames and decode them with createImageBitmap at 15 fps or more?

What was run (2026-10-14)

A small native host (a WKWebView in an AppKit window, the page served from a custom wails://wails/ scheme as Wails does) and a loopback Go server that streams real JPEG frames (a photographic image at 402x874, 603x1311 and 1206x2622 portrait sizes: 23, 41 and 118 KiB at quality 60; and a UI screenshot: 15, 27 and 83 KiB), paced at 30 fps and acknowledged-as-fast-as-decoded. The page decodes each frame with createImageBitmap(new Blob([bytes],{type:"image/jpeg"})), draws it on a canvas and reports rendered frames, drops, decode and draw time.

Result

  • Answered: a page whose origin is wails://wails connects to ws://127.0.0.1:<port> and the server sees Origin: wails://wails, which the device view hub allows. No mixed-content or custom-scheme block.
  • Not answered: the decode rate. The Mac's screen was locked during the run, so the window reported document.hidden === true and WebKit stopped running the page's timers after the first 6 second step. That step, 402x874 frames at a 30 fps pace, rendered 106 of 185 received frames (about 17.7 per second) in a hidden window, which is not a valid measurement. A visible window is needed.
  • A second route (Playwright's WebKit build, headless) was started but its browser download did not finish in the time available, so no WebKit number exists yet.

To finish

Run the same harness on an unlocked session (or with Playwright WebKit) and report fps and decode ms per size. Acceptance for the device view: at least 15 fps rendered at 603x1311 JPEG without dropped-frame growth.

Nothing was installed on the machine besides the throwaway harness; no code is proposed in the repository for this spike.

Ngôn ngữ chính
Go
Star
6
Fork
3
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
362

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

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 AlphaWaveSystems/flutter-probe

Tất cả issue của AlphaWaveSystems/flutter-probe

Issue tương tự

Thêm issue về Go

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.