Repository navigation
Threedog 2.2.2: fixes from a game team's friction log. Nothing to change when upgrading from 2.2.1.
npm install threedog@2.2.2 @threedog/tools@2.2.2Fixed
engine.step()follows a changed viewport (canvas, camera and the UI root) even when no frame was drawn since, so a frozen or stepped page reads the new size on its next step. A renderer the game sized itself is left alone.engine.renderOnce()resetsrenderer.info, so draw-call and triangle counts no longer add up across calls.- The engine's own version string (used in the "two engine copies" warning) matches the package again.
Tools
- An unknown option on a dev-bridge command says the working form (
errors latest 3,state key=value,step 2,hold <action> <seconds>,describe <path>). stepon a title screen says how to leave it (state play=1, or--page "/?play").snapwaits for loading to finish, asshotdoes, before it captures.checkreminds when a game calls three'sbumpMap(on a height computed in the shader: usedetailBumpfromthreedog/tsl.
Docs
- Recipe 16 §2a: hold an action across
threedog snap, and step once after changing the viewport on a headless page.
Tested on Chrome on Windows with real WebGPU: 11,346 checks; the 4 that failed were fixed or passed when run again. The packages were also installed outside the repository and checked (79 checks).
Full notes in the changelog.
中文摘要: 2.2.2。停帧或逐步运行时改了画面大小,下一步画面、镜头和界面就会跟上;单独渲染一帧时绘制数不再累加;开发命令打错参数时会提示正确写法,卡在标题画面会告诉你怎么进游戏,snap 截图前先等加载完;手写 bumpMap() 时 check 提醒改用 detailBump。从 2.2.1 升级不用改代码。