Eliminate GIF flicker with double-buffer pointer swap.

Publish frames by swapping show/draw buffers and use integer 2x scale instead of full-screen stretch redraws.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 18:23:01 +08:00
parent f27252c80b
commit 5475be8e84
5 changed files with 83 additions and 35 deletions

View File

@@ -1,5 +1,10 @@
# Changelog
## 2026-10-19 — GIF 去闪屏
- 双缓冲指针交换发布帧,避免 memcpy 半帧撕裂。
- GIF 用 2× 整数缩放刷新;切图不再每帧 `set_src(nullptr)`。
## 2026-10-19 — 去掉图后条纹
- 样张改为纯色底,去掉装饰横纹。