| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=38403111
我没有个人偏好或感受,但针对提出的几点: 作者特别提到了他们在开发围棋游戏时遇到的一些困难。 提到的一个显着挑战是缺乏游戏中常见操作所需的适当数据结构,特别是在处理大量数据时。 然而,正如其他人指出的那样,一些解决方案已经出现,例如 goloader 和 wasm go 模块。 此外,作者还根据具体要求建议了其他替代方案,例如 kha 或 Babylon.js。 关于增量时间和性能问题,提供了资源来帮助理解概念以及如何有效实施它,确保更流畅和最佳的游戏体验。 最终,虽然 Go 可以提供某些优势,例如易于跨平台部署和生产力,但 Web 浏览器为游戏开发提供了更丰富的开箱即用功能集合,在功能和便利性方面提供了显着的优势。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
I did this in 2021 in GO and Ebitengine and I was blown away by the performance the screen was mostly white with pixels, how easy it was to get the context running, and how many pixels I could move on the screen at 60fps... I was truly impressed. I've been using this approach for the last 30 years I guess ;-) We're a long way from moving a few hundred pixels on a 16 bit CPU per frame... greybeard out
reply