跳到正文
maksym· 来源· @initcore · X·· 3 天前AI 评分68
正文 · AI 翻译

每周开发日志 #3。一个人,四个项目,一周。

两个拥有各自引擎的游戏、一个网站,以及运行我的 AI 智能体的控制平面,同时推进。合并了 221 个 PR:

🛠 控制平面:101
🚗 Destruction Cars:76
👻 Cradle(恐怖游戏):30
🌐 网站:14

这正是我想验证的:一个人能否并行运行多个大型项目并依然完成交付?智能体编写代码。我的工作是指定方向、审查成果(测试、批评家反馈、智能体运行的构建版本),然后给出通过或不通过的判断。

已发布的内容:

👻 Cradle 1.1,内存更新版,已在 iOS 上线。

🚗 Destruction Cars:为每种模式设计了独立的损伤模型、一个可导出宣传短片片段的分镜编辑器、一个演示版本,以及故事战役模式的启动。

🛠 控制平面:Floor,一个实时 3D 工作室,展示智能体实际执行的操作(以小猫形象呈现)。此外还有每次运行的模型路由和每个步骤的时间统计。

我之前承诺的 iPhone 性能图表:

我们重写了用于碰撞的玩家车辆模型:从原来的 161 个节点和 998 条梁,改为 691 个节点和 4,548 条梁。金属出现褶皱和撕裂,引擎盖向上翻起越过挡风玻璃。在 iPhone 15 Pro Max 上,碰撞时能保持 60 fps,在时速 150 公里的八车连环相撞中也能基本维持 60 fps。

我们还把碰撞求解器移植到了 Rust。在 Mac 上更快,但在 iPhone 上的 9 次运行中有 8 次更慢,因此手机端仍保留 JavaScript。多线程带来了真正的提升:约 30%。

下周日:首次预览故事战役内容。

你更愿意运行哪一个:一个大型项目,还是四个同时进行?

#gamedev #BuildInPublic

引用maksym@initcore
每周开发日志 #2。我偏离了轨道。 上周我承诺提供来自真实 iPhone 的性能图表。我没有它们。在我本周合并的 224 个 PR 中,有 191 个进入了控制平面——即运行我的 AI 代理的工具——而不是进入游戏本身。 原因如下。当十几个代理同时工作时,其中两个可能会最终处理同一个任务:一个停滞不前,一个新的接管它,然后旧的苏醒过来并覆盖新的工作成果。因此,现在每个代理都持有一个编号的“笔”,而服务器会拒绝来自旧笔的写入操作。 接下来是这个问题:我怎么知道这条规则实际上成立呢?测试只能检查我能想到的情况。所以我构建了一个检查器,遍历它能到达的所有崩溃、交接和重试的顺序组合:共 290 万个状态,且该规则在所有状态下均成立。下一步我想用 Lean 来证明它对任意数量的代理都成立。 我还了解到当一台 Linux 机器耗尽内存时会发生什么:它不会变慢,而是直接杀死你的工作进程,直到你注意到为止,否则什么都不会恢复。现在它会自行重启,并且那台机器一次只构建一个东西。 游戏仍在推进: 👻《Cradle》,这款恐怖游戏:记忆现在作为场景在各自的地图上播放,iPhone 触觉反馈(心跳、屏住呼吸),在高性能 iPhone 和 iPad 上纹理更清晰,以及新增的道具库。发布在即。 🚗《Destruction Cars》:平静的一周,7 个 PR。 即将推出:工作室的实时 3D 视图,办公桌旁的小猫们正在执行代理们真正在做的事情,由真实事件驱动。第一个灰盒版本已经运行。 下周日:真正的 iPhone 性能图表。 你会更信任探索了 290 万个状态的检查器,还是更信任阅读代码的人? #gamedev #buildinpublic
原文

Weekly devlog #2. I got derailed. Last week I promised perf graphs from a real iPhone. I don't have them. Of the 224 PRs I merged this week, 191 went into the control plane, the tool that runs my AI agents, not into the games. Here's why. With a dozen agents working at once, two of them can end up on the same task: one stalls, a new one takes over, then the old one wakes up and writes over the new one's work. So now every agent holds a numbered "pen", and the server refuses writes from an old pen. Then the question: how do I know that rule actually holds? Tests check the cases I think of. So I built a checker that walks through every order of crashes, handovers and retries it can reach: 2.9 million states, and the rule held in all of them. Next I want to prove it for any number of agents, with Lean. I also learned what happens when a Linux box runs out of memory: it doesn't slow down, it kills your worker, and nothing comes back until you notice. Now it restarts itself, and that box builds one thing at a time. The games still moved: 👻 Cradle, the horror game: memories now play as scenes on their own maps, iPhone haptics (a heartbeat, a held breath), sharper textures on strong iPhones and iPads, and a new library of props. Release is close. 🚗 Destruction Cars: a quiet week, 7 PRs. Coming soon: a live 3D view of the studio, little cats at desks doing whatever the agents are really doing, driven by real events. The first greybox already runs. Next Sunday: the iPhone perf graphs. For real this time. Would you trust a checker that explored 2.9M states more than a person reading the code? #gamedev #buildinpublic

在 X 查看被引用的帖子

来源:maksym · x.com