cool-threads branch: waking the main loop from the subscript queue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/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ệ
- cpp
- Lĩnh vực
- backend-api-design, performance
Hướng nghiên cứu
The issue points to ui_subscript.cpp lines 227, 247, 282, 354, 364, and 452, and engine/system/win/sys_main.cpp lines 697–704. Read the feat/cool-threads branch at commit f36c1d0 alongside the referenced main loop to understand how its worker queue and event handling fit together. The reported work spans waking the loop, the unused finished flag, and Lua state access across threads; clarify scope with the maintainer before estimating completion.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
About the WIP branch feat/cool-threads on your fork (at f36c1d0), since issues are turned off there. A few spots I noticed while reading.
The new queue is a good place to wake the main loop. A glfwPostEmptyEvent() after each push (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L227, https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L247, https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L354) would let the main loop wait in glfwWaitEventsTimeout instead of glfwPollEvents (https://github.com/PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic/blob/421d18871cccb2696b5a57e6d72a9fc22fa641ae/engine/system/win/sys_main.cpp#L697-L704). Right now the main thread still picks the messages up by polling once per frame (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L364).
finished is set at https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L282 but nothing reads it anymore.
GetScriptMemory calls lua_gc on the worker's state from the main thread while the worker runs (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/f36c1d0a0848bc609b9cad0880a65c03b305a1c7/ui_subscript.cpp#L452). Same as on master.
- Ngôn ngữ chính
- C++
- Star
- 23
- Fork
- 69
- Merge trung bình
- 2 giờ 50 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Tất cả issue của PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic
Issue tương tự
-
enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
difficulty:easy prio:normal type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NatronGitHub/openfx-supportext#326 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
zucch1/android-auto-jetson#293 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lfortran -E exits with status 0 after a C preprocessor error (#error, wrong macro argument count)Đang mởbug low priority preprocessor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty:easy enhancement prio:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NatronGitHub/openfx-misc#502 ·
Maintainer thường phản hồi trong vòng 1 ngày