开发者通过将PSP游戏的MIPS机器码转译为C++代码、编译为WebAssembly,并基于WebGL2重新实现PSP操作系统和图形芯片,成功使PSP游戏在浏览器中运行1。《战神:奥林匹斯之链》和《战神:鬼战士》两款游戏已验证可在浏览器中以60帧速率运行,分辨率最高达原生分辨率的4倍1。
在性能方面,该项目通过修复帧缓冲同步问题将工作量减少了8倍,并使用专用线程处理图形芯片,最终将游戏性能从6帧每秒优化至60帧每秒1。Chrome和Firefox浏览器上均能达到60帧每秒,部分场景下Firefox可在55至60帧之间运行,游戏分辨率可设置为原生480×272分辨率的3至4倍1。该项目采用HTTP Range请求实现游戏数据流式传输,每款游戏需约2GB磁盘空间,从ZIP包构建到可玩页面耗时约4分钟(基于8核笔记本)1。项目代码采用MIT许可证,FFmpeg ATRAC3+解码器采用LGPL 2.1或更新版本1。
A developer has successfully recompiled PSP versions of God of War games to run directly in web browsers through an innovative technical pipeline 1. The project translates MIPS machine code from the original games into C++ code, which is then compiled into WebAssembly and paired with a WebGL2-based reimplementation of the PSP operating system and graphics hardware 1.
Two titles have been verified working: God of War: Chains of Olympus and God of War: Ghost of Sparta, both running at 60 frames per second on Chrome and Firefox (with some Firefox scenes ranging from 55–60 fps) at resolutions up to 4 times the original 480×272 native resolution 1. The developer employed several optimization techniques, including fixing framebuffer synchronization issues to reduce workload by 8 times and using dedicated threads for graphics chip processing, which collectively improved performance from an initial 6 frames per second to 60 fps 1. Game data is streamed via HTTP Range requests during playback 1.
The build process from a game ZIP package to a playable browser page takes approximately 4 minutes on an 8-core laptop, with each game requiring roughly 2GB of disk space during compilation 1. The project code is released under the MIT License, while the FFmpeg ATRAC3+ audio decoder component uses LGPL 2.1 or later 1.
评论
还没有评论,欢迎留下第一条。