X11: remove Send requirement and process all UI and events on the main thread
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reading the X11 backend’s event-loop implementation and the Host API; the issue does not name specific files or tests. Determine how timer and file-descriptor callbacks should be exposed for VST3 and CLAP, then verify that UI and event processing can stay on the main thread without the Send bound and that users can implement the revised Host API.
由索引模型根據 Issue 內容生成。
描述
Currently the X11 backend spawns a new thread in order to spawn its own event loop and processes everything there.
This is done because on Linux there is no such thing as a global event loop (unlike Windows and macOS), so there is no standardized event loop for us to plug into.
The issue is that this forces a Send bound on the WindowHandler, which is only necessary for this workaround to work(Windows and macOS always keep everything on the main thread).
VST3 and CLAP now have support for either timer, or more ideally for watching any File Descriptor, and have the host call us back when any new event arrives on those. This allows us to indirectly plug into the host's event loop without blocking anything, and is how most (if not all?) plugins work in those formats.
We should augment the Host API to support timer and FD extensions, which would allow us to drop the Send bound and simplify quite a bit of code on the baseview side.
This however is a breaking change, not because of dropping the Send requirement, but because it will require all users to implement the new Host API.
- 主要語言
- Rust
- 星號
- 387
- 分支
- 128
- 平均合併
- 3 天 2 小時
- 30 天內合併 PR
- 15
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
RustAudio/baseview 的其他 Issue
-
難度 5/5 一週以上 新手友好度 14/100
RustAudio/baseview#359 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
RustAudio/baseview#343 · 1 則留言 ·
維護者通常 1 天內回覆
查看 RustAudio/baseview 的全部 Issue
相似的 Issue
-
desktop documentation
難度 1/5 1 小時以內 新手友好度 90/100
vfarcic/dot-agent-deck#2008 ·
維護者通常 1 天內回覆
-
needs triage
難度 1/5 1 小時以內 新手友好度 85/100
pbakaus/impeccable#1210 ·
維護者通常 1 天內回覆
-
enhancement ux-opportunities
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
area: ci priority: P4 ready-for-agent
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
`PartialEq` for `AssignedBigUint` treats different values as equal可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉status:untriaged
難度 2/5 1-3 小時 新手友好度 78/100
midnightntwrk/midnight-zk#600 ·
維護者通常 2 天內回覆