Add Panel lazy redraw cache and document widget performance plan#49
Add Panel lazy redraw cache and document widget performance plan#49
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
|
@copilot 由于putimage_withalpha的开销小于alphafliter,所以panel应当懒标记,进行优化,对于懒标记处理可以类似Button等 |
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
已在 docs/Widget_Performance_Plan.md 加入 Panel 懒标记与缓存复用方案,明确优先用 putimage_withalpha 重用遮罩层,必要时才用 alphafilter(66e66ed)。本次仅文档更新,无界面改动可截图。 |
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
|
@copilot 依据此,先优化Panel的懒标记 |
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
Co-authored-by: FeJS8888 <110683147+FeJS8888@users.noreply.github.com>
已实现 Panel 懒标记与缓存:生成遮罩后的 cachedLayer,后续直接 putimage_withalpha 复用;所有尺寸/布局/事件更新统一 markDirty,交互后保持 ~80 帧自动重绘窗口以覆盖波纹等动画(ad6d2a4)。本次为渲染逻辑更新,无新增界面截图。 |
Implements a Panel lazy redraw cache and expands the widget performance plan. Panel now caches its masked layer, reuses
putimage_withalphawhen clean, and uses a unifiedmarkDirtyplus a short redraw window (~80 frames) to cover interaction-driven animations. Documentation keeps the broader optimization plan.Changes Made
putimage_withalpha; only regenerate mask on geometry/scale changes.markDirty) across size/scale/layout/event updates; maintained a limited redraw window for animations.Testing
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.