一个开源项目成功将PlayStation 2游戏静态反编译为WebAssembly格式,使其能够直接在浏览器中运行。1该项目通过将PS2的Emotion Engine机器码提前翻译为C++并编译为WebAssembly,配合PS2操作系统和硬件的C++重新实现以及WebGPU图形渲染技术来实现这一转换。1
性能表现方面,项目已成功运行《GT4》和《战神2》等知名游戏,运行效率接近原生帧率。1其中,《GT4》在集成GPU上以PAL版50帧/秒运行,分辨率可达PS2原生分辨率的2倍,1而《战神2》在PS2原生分辨率下的战斗场景可保持60帧/秒,在2倍分辨率下可维持48-60帧/秒。1
项目的构建效率也较为可观。1《战神2》从ISO镜像文件到生成可运行页面仅需3.5分钟(基于8核笔记本),1每个游戏所需的磁盘空间约为300 MB用于生成代码和构建文件。1该项目采用MIT许可证开源,1并支持与PCSX2兼容格式的内存卡导入和导出功能。1
An open-source project has successfully enabled PlayStation 2 games to run in web browsers through static recompilation to WebAssembly1. The initiative works by translating the PS2's Emotion Engine machine code into C++ ahead of time and compiling it to WebAssembly, while reimplementing the PS2 operating system and hardware in C++ and rendering graphics via WebGPU1.
The project has demonstrated strong performance across multiple titles1. Gran Turismo 4 runs at 50 frames per second on integrated GPUs at double the PS2's native resolution, while God of War II maintains 60 frames per second at native PS2 resolution during combat sequences and achieves 48-60 frames per second at double resolution1. The compilation process for God of War II takes approximately 3.5 minutes on an 8-core laptop, with each game requiring around 300 MB of disk space for generated code and builds1. The project operates under an MIT license and supports memory card import and export functionality compatible with PCSX2 format1.
评论
还没有评论,欢迎留下第一条。