hrydgard/ppsspp — pull request #293 by unknownbrackets (2012-12-30 08:07:12+00:00)
Title: Headless w/GLES GPU

This adds a switch, --graphics, to make headless use the GLES_GPU offscreen. It starts up slower, though, which is why I made it use a switch. I didn't use -g for parity with Android (-g = gfx log.)

Not yet tested on Linux, but I tried to make sure it would work just as it did before (same as without --graphics.) I think it wouldn't be hard to add the actual graphics support for other platforms.

There is a bit of a hack to ignore the printf() logging from native, redirecting stdout to NUL. That's why I added the hook to Host to get the debug messages instead of printf()'ing them directly, which I personally like better anyway (even if the freopen() is removed.)

That said, there's still no facility to automatically compare, and it doesn't dump shots or anything. You can change the const WINDOW_VISIBLE to get a visual comparison, though. Possibly if it does/should update the vram we could even test that way.

Related to #109.

-[Unknown]