3b1b / 3b1b/manim

Embed appears to cause manim to peg an entire CPU core

未關閉
#2,471 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

### Describe the bug
From what I can tell, compared to the typical event loop during scene playback, after the `embed` event loop kicks in, `manim` will start to completely peg a core, resulting in elevated CPU usage, battery usage (on laptop) or thermal throttling.

### Additional context
I only did a brief investigation but am not yet sure what might be causing the event loop sleep timer or vsync to get disrupted by the embed. I decided to file the issue first and investigate more later -- pointers appreciated.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

檢查 embed 事件循環的實作,可能位於 scene 或 renderer 程式碼中。比較正常播放期間與 embed 之後的 sleep timer 與 vsync 處理。進行 CPU 使用率 profiling 以識別 busy-waiting 迴圈。檢查問題是否位於 embed 迴圈與 rendering backend 的互動之中。

由索引模型根據 Issue 內容生成。

評估

領域
performance
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。