Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Windowing foundation: one model, decided once a frame, tested without a screen

Đang mở
#243 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
zig
Lĩnh vực
backend, desktop

Hướng nghiên cứu

Start with docs/WINDOWING_FOUNDATION_PLAN.md, which contains the review findings and breaks the work into separate PRs; note the stated dependencies on #237, #238, and #242. Choose one step and follow its named scope, such as running the app module tests in step 1 or measuring Objective-C messages in step 4. Done means completing that step while preserving today's behaviour; this issue describes a broad, multi-step plan rather than a single newcomer-sized change.

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

Mô tả

The plan is docs/WINDOWING_FOUNDATION_PLAN.md (#246). Every step keeps today's behaviour. They make the windowing (floats, menus, dialogs, view drags, drop zones) testable without a screen and cheap in native calls, share one model across platforms, and leave the backend usable by any dvui app. It builds on NATIVE_WINDOWS_PLAN.md and WINDOWS_LINUX_GLASS_PLAN.md, and doesn't repeat them.

Findings from the 2026-10-08 review are in the doc. In short:

  • one Viewport struct serves five kinds of window;
  • Popout re-decides every window by hand each frame, through five near-copies of fill-and-present;
  • there are seven coordinate spaces and two different band thresholds;
  • drag hit tests repeat once per region per frame;
  • macOS makes about 20 Objective-C messages per float per frame, changed or not;
  • glass looks are mirrored four deep and the shader is hand-synced three ways;
  • 32 layout tests never ran;
  • nothing popped out is tested.

Steps, each its own PR:

  • 1. Run the app module's own tests (32 that never ran): #244
  • 2. Menus and dialogs stay auxiliary windows on macOS: #245
  • 3. Typed coordinate spaces and one bandOf in viewport_map, after #237 and #238
  • 4. OsWindow: kinds as a union, native handles cached, dressing applied only on change, per-kind budgets (measure Objective-C messages per frame before and after)
  • 5. The frame's windows as a pure plan the backend reconciles, plus a fake backend and the first integration tests that pop a float out
  • 6. One fill for every OS window, with a target pool
  • 7. A drag model computed once a frame, with tests, and the release rules in one table
  • 8. Float, window and drag lifecycles as explicit states
  • 9. Glass: published capabilities, one look record end to end, shader parity (after #242)
  • 10. Full-screen transitions driven by Core Animation, if release builds don't hold 8.3 ms
  • 11. dvui changes on the fork (subwindow render redirection, a screens hook, subwindow kind and parent), the backend as a package, and dvui's example app as the acceptance test
  • 12. Remove the dead viewport API, along with steps 3–5
Ngôn ngữ chính
Zig
Star
1.5k
Fork
40
Merge trung bình
5 giờ 35 phút
Pull request đã merge (30 ngày)
151

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 fizzyedit/fizzy

Tất cả issue của fizzyedit/fizzy

Issue tương tự

Thêm issue về Backend & API Design

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.