Hacker News | 📄 原文链接 | 2026-10-13 收录

把 PS2 游戏静态重编译成 WebAssembly 跑在浏览器里 — Hacker News 中文摘要

来源:github.com — 187 分 · by snuri00

📋 概述

这个项目不靠模拟器,而是把 PS2 的 Emotion Engine 机器码提前翻译成 C++,编译为 WebAssembly,再链接到一套重写的 PS2 操作系统与硬件实现上,用 WebGPU 绘制。首个跑通的标题是《GT 赛车 4》——它同时吃两个向量单元、依赖精确的浮点行为,还会把渲染结果当调色板读回来,属于系统里最难啃的一类。第二个标题《战神 2》没有写任何专用代码,却暴露了重编译器与向量单元时序的两个 bug,以及输入输出处理器缺失的部分。仓库不含任何游戏数据,玩家需自备光盘镜像。

🔑 核心要点

💡 金句

PlayStation 2 games running in the browser without an emulator. The game's Emotion Engine machine code is translated ahead of time into C++, compiled to WebAssembly, and linked against a reimplementation of the PS2's operating system and hardware.
← 返回 Hacker News 首页