cool-threads branch: waking the main loop from the subscript queue
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- cpp
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- C++
- 星號
- 23
- 分支
- 69
- 平均合併
- 2 小時 50 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 48/100
-
難度 4/5 3-5 天 新手友好度 38/100
-
難度 4/5 3-5 天 新手友好度 42/100
-
難度 4/5 1-2 天 新手友好度 48/100
-
難度 3/5 1-2 天 新手友好度 72/100
查看 PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic 的全部 Issue
相似的 Issue
-
enhancement help wanted
難度 2/5 1-3 小時 新手友好度 82/100
-
area:text difficulty:easy prio:low type:bug
難度 2/5 1-3 小時 新手友好度 75/100
NatronGitHub/openfx-arena#337 ·
維護者通常 1 天內回覆
-
difficulty:easy prio:normal type:bug
難度 2/5 1-3 小時 新手友好度 78/100
NatronGitHub/openfx-supportext#326 ·
維護者通常 1 天內回覆
-
difficulty:easy func:viewer prio:normal type:bug
難度 2/5 1-3 小時 新手友好度 78/100
NatronGitHub/Natron#2300 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
zucch1/android-auto-jetson#293 ·
維護者通常 1 天內回覆