logoalt Hacker News

Tiberium • yesterday at 3:45 PM • 11 replies • view on HN

For the general picture: the Xbox version of the game was leaked by Cyberleek - first the resources, then the game binary.

Because modern Xbox is very close to a Windows PC with some extra Xbox stuff, running the actual game code isn't hard, it's mostly about compatibility and graphics, plus the binary doesn't have any special DRM/obfuscation.

The current projects (xcl and VIctory) basically take a Wine-like approach. The main problems they have to solve, as I understand:

- The game ships with raw RDNA 2 shaders, so the projects have to translate that to another format, e.g. DXIL for DirectX 12, and compile those shaders. So you need a good translation/recompilation pipeline, if it's bad, the shaders will be bloated and perform poorly

- Xbox has unified memory, while most PCs do not, so you have to add a lot of workarounds and book-keeping for the game to work properly with that

- Xbox's DirectX 12 differs from the normal Windows one in some ways, and the game uses Xbox-specific texture formats with DirectStorage

I just wanted to share this because there's a lot of misconceptions going around about this being a "recomp" or something like that. Decompiling the entire binary (it's about 100MB of real executable machine code) will be a much bigger effort than getting this binary to run.


Replies

Agentlien • yesterday at 4:45 PM

I work with graphics and performance in video games. For the last two years my main focus has been low-level Xbox stuff. It is fascinating both how much stuff is just Windows API and also how many weird platform-specific quirks there are.

Getting the same thing to run on PC and Xbox Series X|S can be such a wild ride. 90% just works, unlike PS5 or Switch where there's a lot of work to get anything running at all. But those last 10% are so full of odd fiddly platform-specific details.

➕ show 3 replies
quadruple • today at 2:35 PM

The problem is that shaders generated by xcl's shader compiler ARE bloated. So bloated in fact that Nvidia's drivers really really dislike compiling them, and will choke hard. Most playable clips happen on AMD GPUs.

Another thing that the Xbox has that PCs don't is BCPack. It's Microsofts flavor of game asset compression accelerated by hardware, which obviously PCs don't have. In fact, I believe it may even be patented by Microsoft, so I assume translation layers can get taken down by MS for specifically that.

wpm • yesterday at 7:39 PM

I actually saw something passable running on macOS, efforts there are likely moving somewhat faster (at least for now) than PC due to the unified architecture of the system memory.

➕ show 1 reply
0x000xca0xfe • yesterday at 4:09 PM

I'm very, very interested what the modding scene will be for this game... this many hyped kids with ridiculously overpowered tools at the same time will lead to interesting results for sure.

➕ show 4 replies
bathtub365 • yesterday at 4:34 PM

The graphics also inevitably won’t be as good as those on the eventual PC release since the assets are all the Xbox version

➕ show 1 reply
hamdingers • yesterday at 10:00 PM

> The game ships with raw RDNA 2 shaders, so the projects have to translate that to another format

Hypothetically, could someone with an RDNA 2 card skip this step? RX 6000 series GPUs or something like a BC-250

➕ show 1 reply
jjcm • yesterday at 8:47 PM

Worth noting as well there are several different efforts happening in addition to this one - some are emulation layers (what I suspect raul_bs3 is working on), some are true recompiles.

trueno • today at 4:03 AM

i understand the exe is floating around, but ive seen nothing about the assets which presumably are needed for some of these videos ive seen floating around running the game at like 2fps

➕ show 1 reply
patadura • yesterday at 8:38 PM

Makes me wonder how much performance the APUs would get if games are recompiled to work with unified memory on PC.

oybng • yesterday at 7:04 PM

It was released by cyberleek on behalf of a supplier, cyberleek had no involvement in acquiring the build

userbinator • today at 3:34 AM

Xbox has unified memory, while most PCs do not

Aren't integrated graphics still the majority? It's only medium-high-end PCs which have a discrete GPU.

➕ show 1 reply