[中] 播放时每个帧信号都扫描整条时间线

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
50/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
performance

Research direction

Start at windows/birdlock/app/timeline.py:71, where TransportBar.refresh() subscribes to every state.changed, then read :89-93 and follow st.job.mixed_audio into windows/birdlock/core/render.py:418-424 to see the per-frame scan of output_frames. Check windows/birdlock/app/state.py:1223 for what the frame emit carries versus the audio/job/settings/analysis/phase keys. Done means playback no longer triggers a full timeline scan per frame — verify by profiling the GUI thread on a long project with an audio track.

Written by the indexing model from the issue text.

Description

位置:windows/birdlock/app/timeline.py:71、:89-93;windows/birdlock/core/render.py:418-424;windows/birdlock/app/state.py:1223

现象:TransportBar.refresh() 订阅了任意 state.changed,每次都调用 st.job.mixed_audio(st.audio),后者做 resolve()、mute_bursts() 并逐帧扫描 output_frames。播放时每个输出帧都会 emit("frame"),60 fps 下每秒几十次全时间线扫描。

复现:播放一个带音轨的长工程,观察 GUI 线程占用。

建议:只订阅 ("audio","job","settings","analysis","phase"),或在 job/audio 变化时缓存 sound_active。

来源:2026-11-15 全仓只读审计,PR #7 未包含此项。 未在 Windows 实机复现,复现路径由代码审计推得。

Dominant language
Swift
Stars
2
Forks
2
Avg merge
1h 11m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cyandee/BirdLock

All issues in cyandee/BirdLock

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.