dsh-watch-together 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
All notable changes to **dsh-watch-together** are documented here.
|
|
4
4
|
This package starts its own version line at `0.0.7` — it is not a continuation of `dsh-video-storyboard`.
|
|
5
5
|
|
|
6
|
+
## [0.2.10] - 2026-11-03
|
|
7
|
+
|
|
8
|
+
> GPU 路径其实一直是坏的,顺便量了一下它到底省不省。
|
|
9
|
+
|
|
10
|
+
### Fixed — GPU 路径的 GLSL 用了保留字,着色器从来没编译成功过
|
|
11
|
+
|
|
12
|
+
`glass_window_gpu.py` 的 FRAG 里有一行 `vec3 patch = mix(edgep, strong, e);`。
|
|
13
|
+
`patch` 是 GLSL 1.5 起保留的 tessellation 关键字,编译直接失败:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
GLSL Compiler failed
|
|
17
|
+
ERROR: 0:24: 'patch' : syntax error
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`_work()` 里那句 `except` 把异常吞掉、每帧打一行 `GPU capture failed, falling back to CPU`,
|
|
21
|
+
然后继续走 CPU —— **所以 `glass_window_gpu.py` 从来没真正跑起来过**,用户能看到的最大线索
|
|
22
|
+
就是一句每帧刷屏的日志。更糟的是它每帧重建一次 program/FBO 又失败,实测内存涨到 **2.3 GB**。
|
|
23
|
+
|
|
24
|
+
改个名(`patch` → `tile`)。修完日志干净、内存 200 MB、画面和 CPU 版一致。
|
|
25
|
+
|
|
26
|
+
### 实测 — GPU 不比 CPU 省(这台机器上)
|
|
27
|
+
|
|
28
|
+
i9-12900HX / RTX 4060 Laptop / 窗口 700×665 / 150% DPI / 静态桌面:
|
|
29
|
+
|
|
30
|
+
| 路径 | CPU(单核) | 内存 |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| CPU(正常模式) | **49.6%** | 100 MB |
|
|
33
|
+
| GPU(`glass_window_gpu.py`) | 115.6% | 200 MB |
|
|
34
|
+
| CPU(`GLASS_FORCE=1`,调试) | 146% | 111 MB |
|
|
35
|
+
|
|
36
|
+
两边都有静态跳帧,GPU 多出来的是每帧把 BGRA 上传成纹理(约 2.6 MB/帧)+ moderngl 的
|
|
37
|
+
Python 层调用开销;而 CPU 版在这么小的窗口上本来就够快。GPU 路径更适合「窗口很大 + CPU 较弱」,
|
|
38
|
+
不是无脑更优 —— **默认继续用 CPU**。
|
|
39
|
+
|
|
6
40
|
## [0.2.9] - 2026-11-03
|
|
7
41
|
|
|
8
42
|
> 一条根因修得很漂亮的 bug:拖动窗口时的动态模糊。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-watch-together",
|
|
3
3
|
"description": "Watch a video together with a text-only agent: follow the user's real playback position and hand over one segment at a time, just before the segment ends.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.10",
|
|
5
5
|
"entry": {
|
|
6
6
|
"name": "dsh-watch-together",
|
|
7
7
|
"inject": [
|
|
@@ -112,8 +112,8 @@ void main() {
|
|
|
112
112
|
vec3 edgep = texelFetch(raw, ep, 0).rgb;
|
|
113
113
|
// CPU 里 edge_w=0 是边缘(取折射样本),=1 是中心(取强模糊);
|
|
114
114
|
// 这里方向必须一致,否则内框边缘反而没有扭曲。
|
|
115
|
-
vec3
|
|
116
|
-
frag = vec4(mix(base,
|
|
115
|
+
vec3 tile = mix(edgep, strong, e);
|
|
116
|
+
frag = vec4(mix(base, tile, a), 1.0);
|
|
117
117
|
}
|
|
118
118
|
"""
|
|
119
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-watch-together",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Watch a video together with a text-only agent: follow the user's real playback position, hand over one segment at a time just before it ends, and keep a single text stream of scripted lines, interjections and the user's replies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|