#7351·phaser

[4.1.0] 使用 HiDPI 画布时,相机缩放比 != 1 (canvas.width = css * devicePixelRatio): 渲染出现空白,getWorldPoint 和 worldView 不一致

作者: newroad-power创建于 2026年8月15日更新于 2026年8月15日

To render sharp on HiDPI displays, we follow the standard approach (same as PixiJS `resolution` + `autoDensity`): make the backing store larger than the CSS size and compensate with the camera:

内容来源: phaserjs/phaser