Native PC recompilation · Progress report

NFL 2K5 on PC: menus, 3D and kickoff

24 September 2026 Builds ee98a1b → 7e1347b and later Executable build\Release\NFL2K5.exe

The Xbox game now runs as a native Windows program through its whole front end. Intro movies, title, main menu, VIP creation and save, Team Select with 3D helmets, and Coach Matchup all work, and a Quick Game now gets into the match: the stadium, the players, the crowd and the coin toss all render in 3D, with sound running. It currently stops at the coin toss.

Where it stands

Boots and loads game data from the disc imageWorking
SEGA splash, legal screen, intro moviesWorking
Controller and keyboard inputEnter = START, arrows = D-pad, Z/Space = A, X = B.Working
Title, main menu, VIP name entry, VIP save to the Xbox hard diskWorking
Team Select (3D helmets), Coach MatchupWorking
3D scenes (ESPN studio, stadium)Draw, but incomplete: lighting and some surfaces are off.Partial
Start GameNo longer freezes; the match loop runs.Partial
Hardware (GPU) renderingDirect3D 11, turned on with RECOMP_GPU=1. Menus about 4x faster.Working
Match loadingFinishes now that the audio chip's interrupts reach the game.Working
In-game 3D: stadium, players, crowd, coin tossDraws, with the broadcast graphics. The field grass is still dark and some models miss parts.Partial
Kickoff and gameplayThe coin toss doesn't finish yet.Not yet
Attract mode / demoNot yet
SoundThe audio chip runs and plays; interrupts are now delivered.Partial

Overnight: into the match

Three fixes took the game from a black loading screen to the coin toss:

The audio chip could never say "done"

The game plays the pregame speech and waits for it to finish. The Xbox audio chip reports that with an interrupt, and the port never delivered it. The game's own audio interrupt handler now runs, and loading completes.

Missing game code

24 small game routines had never been translated. One of them made a menu draw garbage until it crashed. A second translator bug turned a one-case switch into a jump nowhere once the audio started working.

Depth

The game uses "W-buffered" depth, measuring distance with a different value than the port assumed. Most of the 3D scene, and the on-screen graphics, were being hidden behind things they're in front of.

Coin toss with broadcast overlay
Coin toss, with the broadcast graphic
Stadium flyover
Pregame stadium flyover
Crowd cutscene
Crowd cutscene (models still missing parts)
Pause menu in a match
The in-game pause menu

New: rendering on the graphics card

Until now every pixel was drawn by the CPU. The port now has a Direct3D 11 renderer: the game's vertex programs still run on the CPU, but drawing, texturing, the Xbox's colour-combining stage, transparency, depth and stencil all run on your graphics card (tested on an RTX 2060 SUPER). The picture matches the software renderer. The only visible change is smoother texture filtering.

Main menu, software rendering~8 fps
Main menu, GPU rendering~31 fps

Same 75-second run: 573 screen refreshes with software rendering, 2,348 with the GPU. It's now the default; set RECOMP_GPU=0 to go back to software.

Main menu drawn by the software renderer
Software renderer
Main menu drawn by the Direct3D 11 renderer
GPU renderer (Direct3D 11)

Start Game: what the black screen is

After Start Game the game shows its matchup loading screen: the team names cycle along the top edge while everything else fades out. Both renderers show exactly the same thing, so this isn't a drawing bug. The game is still loading. Loading stalled because the game stops a sound and waits for the audio chip to confirm it stopped. The audio chip isn't emulated yet, so no confirmation ever came. That wait is now bounded, and loading gets about 440 disc reads further before the next stall, which is being traced now.

Latest: from menus to kickoff

Since the first pictures, the port has gone from movies to the full front end and into a match. Each step below removed a blocker you could see:

Crash after VIP name entry

One small game routine (returning a number used to lay out a menu) was never translated. The menu read garbage, tried to draw far too much, and ran out of memory. Twelve more missing routines, found by scanning the game's function tables, were added at the same time.

3D drawing

The Xbox graphics chip runs a small program for every vertex of every shape, even for flat menus. The port can now run those programs, with depth sorting and perspective-correct textures. That's what draws the 3D helmets, the ESPN studio and the stadium.

Correct colours

The chip's final colour stage (how textures, lighting and fades combine) is now emulated, and a wrong register address that gave almost every texture the wrong colours is fixed.

Speed

Drawing now runs on its own thread. Before, it held up the screen-refresh signal the game paces itself on, and the game dropped to about 4 frames a second.

Freeze on Start Game

The thread that generates screen refreshes was running a loading callback that itself waited for a screen refresh, so it waited on itself forever. Loading work is now kept off that thread, as on real hardware.

Crashes contained

A bad drawing command, or the window following an off-screen image, used to take the whole game down. Both are now skipped safely.

3D ESPN studio set with desk structures and a wooden floor
ESPN studio set, drawn in 3D through the new vertex-program support.
Coach Matchup screen with run and pass charts for two coaches
Coach Matchup, the last screen before kickoff.
Save VIP Record screen listing the VIP1 file on the Xbox hard disk
VIP profile saved to the emulated Xbox hard disk.

Is the video real?

Yes. Nothing in the window is a video file made for the port. The movies are the game's own files from the disc image. The game's own MPEG decoder (CRI Sofdec, translated from the Xbox code) decodes them, and the game's own drawing code puts each frame on screen. The port's graphics layer then carries out those drawing commands and shows the result in the window:

Movie file on the disc→ Game's MPEG decoder→ Game's draw commands→ Port's GPU emulation→ Window

If a frame ever looks wrong (grey fill, missing layers), that comes from the port's graphics layer, which is still incomplete. It doesn't mean the footage is fake.

ESPN Videogames intro frame: basketball and football players on a tiled video wall
Intro movie in NFL2K5.exe's window, 36 seconds after launch.
SEGA logo in yellow on a blue background
SEGA splash, the first image the port ever drew.
Intro movie frame showing football players on a video wall
Another movie frame, captured from the rendered surface.

What made it work

There was no single fix. Five problems formed a chain, and each one hid the next, so each had to be solved before the next could even be seen. The one that finally put pictures on screen was number 3: before it, not one of the game's draw commands had ever been carried out.

1. The movie decoder was missing

The game's MPEG decoder keeps its frame-decoding routines in separate code sections and reaches them only through tables of addresses. The translator never found them, so every frame decode called into nothing. They're now included in the translation.

2. Screen refreshes were getting lost

The game waits for the Xbox's 60 Hz refresh signal before each frame. A background helper in the port kept erasing that signal before the game could see it, so the game noticed about one refresh a second. With the movie running at one frame a second, nothing looked alive. Now the signal stays set until the game acknowledges it, the way real hardware behaves.

A first version of this fix locked the game up. The port lets only one game thread run at a time, and that version could leave two threads each waiting on the other. It was redesigned so that can't happen.

3. No draw had ever run (the key fix)

The game writes its drawing commands into a large buffer and points the graphics chip at it with jump instructions. The port's command reader stopped at the first jump, so it never reached a single draw. Every earlier run reported zero draws. Once the reader followed jumps and calls the way the GPU does, draws started running. This affects everything the game draws, not just the movies.

4. The draws came out wrong

Once draws were running, the port's graphics layer had its own mistakes. Vertex data was read with the wrong layout, which collapsed everything onto the left edge. Triangles were joined in the wrong order, leaving a triangle-shaped hole. Paletted images weren't supported, so the SEGA logo came out grey. Transparency wasn't supported either, so a see-through fade layer was painted as solid grey over the movie. All of these are fixed.

5. The window showed half-drawn frames

The window used to show whichever image was mid-redraw, which flickered. It now shows each frame once the game marks it finished. Double-clicking NFL2K5.exe also turns on the settings rendering needs, which only the test script used to set. That script starts the window hidden.

Known issues

(Fixed) It stops after VIP name entry

Not diagnosed yet. The error dialog seen during testing came from ShellHost.exe, a Windows process, not from the game, which would name NFL2K5.exe. The game window stayed open behind it showing grey. So the game may have hung or gone grey rather than crashed. The next step is a run with logging captured to see where it stops.

Demo mode doesn't start

The attract-mode demo is real gameplay, so it likely needs the same loading to finish that Start Game does. Vertex programs (3D) are now implemented.

No sound, and a grey frame after some movies

Audio hardware is stubbed. In some test runs, after the first movie ended, the player kept showing a grey, never-decoded frame. The likely cause is that it waits for the movie's audio to finish, and silent audio never reports finishing. Your run got further than that, so the behaviour varies.

Speed

The current build is unoptimised and runs the Xbox's single CPU thread-by-thread under a lock. GPU rendering (RECOMP_GPU=1) takes drawing off the CPU; the game code itself is still built without optimisation.

Next steps

  1. Get past the coin toss to kickoff.
  2. Light the field (the grass uses bump mapping) and fix models missing limbs.
  3. Speed: move the game's vertex programs to the graphics card.
  4. Fix remaining 3D quality issues (lighting, some surfaces).
  5. Sound: emulate the Xbox audio chip enough to play voices and music. The pregame show and commentary depend on it.
  6. Turn on the optimised build for playable speed.

How to run it

E:\NFL2K5-PC\build\Release\NFL2K5.exe

Run it with no arguments; GPU rendering is on by default. The intro plays unless the environment variable NFL2K5_SKIP_INTRO=1 is set. tools\run-bringup.ps1 launches with the window hidden and is meant for diagnostic logs.