RepositoryC++
mr-finster

mr-finster/vf1-recomp

Virtua Fighter (Sega Model 1, 1993) statically recompiled for Mac, Windows and Steam Deck: up to 6x, widescreen, smooth 120 fps. Bring your own vf.zip.

96stars
8forks
14issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: fighting-game

#1 Repository of the week

1
TINIX TRENDING·Topic: virtua-fighter

#1 Repository of the week

1
TINIX TRENDING·Topic: sega

#1 Repository of the week

Virtua Fighter Recomp

Virtua Fighter Recomp

Virtua Fighter (SEGA, arcade, Model 1, 1993) as a native PC game: the arcade's own V60 code, recompiled to native code, with render scales up to 6x, widescreen and smooth motion at any refresh rate.

Latest release Licence: MIT Platforms

Play · Download · Trailer · Secret characters · Status · Controls · Report a bug

Virtua Fighter Recomp at 3x: fights on five stages and the widescreen player select

Watch the trailer Watch the secret characters trailer
Trailer · Secret characters (click to watch on YouTube)

[!IMPORTANT] No game files are included: no ROMs and nothing made from them. You need your own dump of the game as MAME's vf set (vf.zip). It is read on your computer, and the game's code is recompiled there when it starts. An unofficial fan project, not made, approved or supported by SEGA, and not affiliated with it.

About

Virtua Fighter Recomp runs the arcade game's own NEC V60 program, recompiled to native code on your machine from your vf.zip, and reimplements the rest of the Model 1 board around it: the TGP geometry coprocessor, the polygon rasterizer, the tile layers, the sound board and the I/O board, from MAME's work on the Model 1. At 1x you get the arcade's frames pixel for pixel; above it, render scales up to 6x, widescreen and ultrawide, and smooth motion at your screen's refresh rate.

Status

AreaState
The arcade's V60 program, recompiled to native codeWorking
TGP, rasterizer, tile layers, sound and I/O boardsWorking: reimplemented from MAME's Model 1 code
Render scale up to 6x, widescreen and ultrawide, smooth motionWorking
The 3D drawn on the GPU (Display > 3D renderer: Auto, GPU or CPU)Working on macOS (Metal), Windows (Direct3D 12 or Vulkan) and Steam Deck / Linux (Vulkan): the same picture as the CPU's, checked when the game starts; Auto uses the GPU whenever that check passes (not a software GPU such as llvmpipe), and any difference or error falls back to the CPU
Sarah's stage lighting (the light from below pulsing with the floor)Working, as on the cabinet
Portable mode, your own ROM folderWorking
Menu, keyboard and gamepads, two playersWorking
macOS, Windows, Steam Deck / x86-64 LinuxWorking
Painted widescreen sides for the title and player selectWorking in the downloads; not in this repository (4:3 without them)
Random fighters, secret characters and cheats (menu > Cheats)Working: see below
The game's language (menu > Arcade settings: English or Japanese)Working; English from the first start
Online playNot yet

Random fighters

Watch: Virtua Fighter 1 But Every Character Is Randomized

Random fighters: a lineup of them over the game

Menu > Cheats > Player 1 fighter (and Player 2 fighter):

  • Random: a new fighter every game, its head, body and limbs from three of the cast and its moves dealt from the same three, so it plays like a mix of them, at the real game's timings. Its voice is one of the three's, and it gets a name made of theirs on the energy bar (JACPAIWOLF, WOLFLAURAH).
  • Seed: type a fighter's name, as seen on an energy bar, to get that fighter again: the same build and the same moves on any machine. The colours are new every game.
  • Secret character: one of the fighters cut from the game, below.

Anything but Normal is picked for you at the select. Round 1 builds each random fighter from its polygons as the fight starts. Random opponents makes every computer opponent a random fighter, made afresh for each match.

Secret characters

Menu > Cheats > Player 1 fighter (or Player 2 fighter) > Secret character, then Character: a fighter cut from the arcade ROM, picked for you at the select: Siba (Majido), Jeff, Takeru (the early Akira), the Koskol brothers Rekka, Score and Aeon, or Dural. They were never finished (borrowed moves, no throws), so expect oddities. The other player and the computer keep the real Akira.

Portraits made from the game's own models. Only Siba ever got select art; the rest had none, so the select screen showed Akira's (or nothing). Each one now has a portrait drawn from its real 3D head in the ROM, by the game's own renderer:

  • Portraits: the game's select screen draws a live 3D head in a camera of its own per character. The ones without a portrait get one built from their fight head, and each has its own camera, found by rendering every head against the cast's and measuring: the eyes at the same height, the face in the middle, the head the same size, the neck off the bottom. Dural's is also turned to face the way the others do.

The secret characters in action at 3x: Dural, Siba, Jeff, Takeru and Rekka on five stages, and Jeff on the player select

The cast's select portraits, and the secret characters' below

CharacterSelect screenHealth barNotes
Siba (Majido)Own portrait and profile; named MAJIDO (P1) or SHIIBA (P2)SIBAThe most complete of them. His pounce is Lau's: his own had no jump in its data and flew him across the ring
JeffOwn portrait and profile; named JEFFERYJEFFA handful of Jacky's moves; his hat and shades can be knocked off
TakeruOwn portrait and profile (as Akira Ryuzaki, his early name)TAKERUThe early Akira, in Akira's headband
RekkaMade portrait (no blinking)REKKARekka and Score share a head
ScoreMade portrait (no blinking)SCORELooks like Rekka
AeonMade portrait (no blinking)AEON
DuralMade portrait (no blinking)DURAL

The rest of Cheats: Kage's mask (a hit can knock his hood back, as on a cabinet played for nine hours), infinite energy (player 1, 2 or both), one-hit KO, no time limit, and a tiny or huge ring.

Who they were

From The Cutting Room Floor, whose research (and mountainmanjed's MAME cheats) these come from:

  • Siba (Majido Ab Dul): seen in pre-release screenshots and on the international cabinet's artwork, as "Shiiba" (on some cabinets mislabelled Akira). Renamed Majido before he was cut, late: he is the only one with his own select icon and voice clips, recorded like the final cast's. His moves are borrowed from Sarah and Lau. He came back as a hidden character, Siba, in Fighters Megamix.
  • Jeff (Jeffery Buckman): a soldier in camo, a cap and shades. His name is likely a tribute to VF1 staff member Jeffrey Buchanan, and "Jeffery" later went to Jeffry; finish the game with him and the rankings call him WILLIE, Jeffry's early name. He looks remarkably like Tekken 2's Prototype Jack, from many of the same designers.
  • Takeru (Takeru Ryushoji): listed just before Akira in the game's character table and fighting under Akira's name, most likely Akira's early design, but with his own unused bio and nameplate, and TAKERU on the rankings when you finish with him. (Akira himself was once Akira Ryuzaki.)
  • The Koskol brothers, Rekka, Score and Aeon: listed just after Akira, with Dural's name and moves. Early design documents name them as the game's three final bosses, perhaps meant to be fought a round each; with the same moves and IDs, they're in effect one character with three outfits.
  • Dural: the game's real final boss, never selectable. An early, unused select screen in the code has a portrait for Dural (and one for a Koskol brother), so she may once have been meant to be playable.

Play

From the latest release, or the site:

SystemDownload
macOS 11+ (Apple silicon and Intel)VirtuaFighterRecomp-mac.zip
Windows 10 or 11 (64-bit)VirtuaFighterRecomp-windows.zip
Steam Deck / x86-64 LinuxVirtuaFighterRecomp-deck.tar.gz

Mac and Windows

  1. Unzip it (Mac: move Virtua Fighter Recomp to Applications; Windows: the VirtuaFighter folder anywhere, not inside Program Files).
  2. Open it (Windows: VirtuaFighter.exe).
  3. Choose your vf.zip when it asks. A copy is kept, so you only do this once.

Steam Deck

  1. Copy the download to the Deck (e.g. Downloads) and unpack it there: in Desktop Mode, right-click it in the file manager > Extract > Extract archive here. (Unpacking on Windows, or copying the folder through a USB stick, can lose the files' permissions, and then nothing launches.)
  2. Put your vf.zip in the VirtuaFighter/roms folder.
  3. Desktop Mode: Steam > Games > Add a Non-Steam Game to My Library > Browse, set the file type filter to "All files", pick the vf file in the VirtuaFighter folder, Add Selected Programs. In its Properties, set Start In to the VirtuaFighter folder (e.g. /home/deck/Downloads/VirtuaFighter/), and under Compatibility leave "Force the use of a specific Steam Play compatibility tool" off: it's a native Linux game, and Proton stops it launching.
  4. Back in Game Mode, launch it from your Library with the default Gamepad layout.

The Windows download also runs on the Deck under Proton (add VirtuaFighter.exe instead, with Proton forced on), but the native Linux build above is the one to use.

Portable mode: put a file named portable.txt next to the program (Windows: beside VirtuaFighter.exe; Mac: beside the app, in the same folder; Steam Deck / Linux: in the VirtuaFighter folder) and the game keeps everything in that folder: settings, saves, screenshots, log.txt and the copy of your vf.zip (in its roms folder), with nothing in your user data folder (%APPDATA%, ~/Library/Application Support, ~/.local/share).

Your own ROM folder (e.g. Batocera's /userdata/roms/ports/vf, or any folder an update won't touch): start the game with --roms <folder> (or --roms=<folder>), set the environment variable VF_ROMS, or add roms_folder = <folder> to settings.ini; the command line wins, then VF_ROMS, then settings.ini. ~ is your home folder, and a relative path in settings.ini is from its folder. The game looks there first for vf.zip (and model1io.zip, if you have it) and only reads it (no copy is kept anywhere else); log.txt names the folder it used. If the zip isn't there, the log says where it looked and the game carries on as without the option; a zip you then choose with the file picker is copied into your ROM folder, so the next start finds it there. Examples: Windows VirtuaFighter.exe --roms "D:\ROMs\vf"; Mac open "Virtua Fighter Recomp.app" --args --roms ~/ROMs/vf; Linux / Batocera ./VirtuaFighter.sh --roms /userdata/roms/ports/vf.

[!NOTE] The Mac and Windows builds aren't signed. On macOS, open it once, close the message, then System Settings > Privacy & Security > Open Anyway. On Windows, if SmartScreen warns, choose More info > Run anyway.

Controls

Change them in the menu (Esc, or View / Select on a pad).

KeyDoes
↑ ↓ ← →Player 1: move
Z X CPlayer 1: guard, punch, kick
1Player 1: start
I J K LPlayer 2: move
B N MPlayer 2: guard, punch, kick
2Player 2: start
EscMenu: display (render scale, picture shape, antialiasing, 3D renderer...), sound, game, controls, cheats (the unused characters), quit
PPause
F3Reset
F5 / F6Render scale / picture shape
F9Frame timings
F11Fullscreen
F12Screenshot

Gamepad (Xbox layout): d-pad or stick to move, X guard, A punch, B kick, Y guard + punch (throws), RB punch + kick, LB guard + kick, RT all three, Start to start. View (tap), L3 + R3 or the touchpad click opens the menu (Menu can be moved in Controls); View + LB / RB change the render scale / picture shape. In Arcade mode, set Coin in Controls (View works) for a coin button.

How it works

When it starts, the game's V60 program from your vf.zip is recompiled to native code with SLJIT (src/rt/native.cpp), guided by assets/vf_map.txt: a list of where the program's functions start, addresses only, no bytes from the ROM. Around it runs a reimplementation of the Model 1 board: memory map and interrupts, the Fujitsu MB86233 TGP, the rasterizer, the System 24 tile chip, the sound board (68000, MultiPCM, YM3438) and the I/O board, all from MAME's code. An SDL 3 host draws the picture at any scale and shape and fills in the frames between the arcade's for smooth motion.

The 3D can also be drawn on the GPU (src/gpu): Metal on a Mac, and SDL_GPU compute (Direct3D 12 or Vulkan) on Windows and Linux. The GPU doesn't use the usual depth buffer: the polygons are drawn in the game's own order, the order standing in for depth, by a compute rasteriser that follows the CPU renderer's arithmetic step for step (integer division, no fused multiply-adds, float-to-integer conversion as on x86), so its picture is the CPU's pixel for pixel. When the game starts it draws a test scene both ways and compares them, then checks its first pictures of the game itself; any difference, error or missing driver and it uses the CPU for that run. Auto (the default) then picks the GPU unless it's clearly slower than the CPU on that machine.

Repository layout

PathContents
src/corethe NEC V60 interpreter and the Fujitsu MB86233 (TGP) core, from MAME
src/machineModel 1: memory map, interrupts, TGP, rasterizer, tile chip, sound and I/O boards, smooth motion
src/rtthe recompiler's runtime, and the recompile done on the player's machine (SLJIT)
src/hostthe SDL 3 host: window, input, pacing, the RmlUi menu
src/gputhe GPU renderer for the 3D: Metal (gpu3d_metal.mm), SDL_GPU (gpu3d_sdlgpu.cpp), its HLSL compute shaders (gpu3d.hlsl) and their compiled SPIR-V / DXIL (gpu3d_shaders.h)
tools/gpu/shaders.shcompiles gpu3d.hlsl into gpu3d_shaders.h with DXC
assets/vf_map.txt (function addresses), the app icon, the menu (ui/) and its font
third_party/MAME code, Musashi, ymfm, SLJIT, the Z80 core, RmlUi, GLM, stb_image
tools/recompthe ahead-of-time recompiler (V60 to C++), for development
tools/portthe script that ported MAME's TGP and rasterizer
tools/*.cpp, tools/romset.pyregion builder, disassembler, headless runner, lockstep checker, coverage
tools/mac, tools/win, tools/deck, tools/releasethe release packages and their licence notices
tools/sitethe download site

Run it yourself

Needs a C++20 compiler, zlib, SDL 3 and FreeType (Mac: brew install sdl3 freetype).

make native            # build/bin/vf-native: the game, recompiled from your vf.zip when it starts
build/bin/vf-native

The release packages: tools/mac/package.sh (Mac, universal), tools/win/build.sh (Windows, cross-compiled with MinGW-w64), tools/deck/build.sh (Steam Deck / x86-64 Linux, in Valve's Steam Runtime "sniper" SDK container). They also take assets/backgrounds/ (painted widescreen sides for the title and player select screens), which isn't in this repository: the game runs without it, and those two screens are then shown 4:3.

For development, the V60 code can also be recompiled ahead of time to C++ (kept in build/, never committed): python3 tools/romset.py roms/vf.zip build/vf roms/model1io.zip, then make builds build/bin/vf. make rec builds vflock, which runs MAME's V60 interpreter and the recompiled code side by side and compares every register at every scanline.

How it's made

Made with the help of AI coding tools. Every build is checked against the arcade: the recompiled code runs side by side with an interpreter of the original code, and both are compared frame by frame with MAME's pictures, RAM and sound.

The whole story, with how the AI-assisted work was organised and checked: docs/HOW-IT-WAS-MADE.md.

Credits

Built on MAME's work on the Model 1: the V60 core and disassembler (Farfetch'd, R. Belmont), the TGP, the rasterizer, the System 24 tile chip and the machine (Olivier Galibert), the MultiPCM (Miguel Angel Horna) and the sound board (R. Belmont), all BSD-3-Clause. Also Musashi (Karl Stenerud, MIT), ymfm (Aaron Giles, BSD-3-Clause), SLJIT (Zoltan Herczeg, BSD-2-Clause), the Z80 core (Nicolas Allemand, MIT), RmlUi (MIT), GLM (MIT), stb_image (Sean Barrett, public domain / MIT), SDL 3 (zlib), FreeType (FreeType License) and the Barlow Condensed font (SIL Open Font License). tools/release/licenses.sh gathers their notices for the downloads.

Thanks to everyone who tested and reported: svera (portable mode, the unused characters), terryarcade, chocolatelily-0716, vmicka72 and aadsasdasd. The secret characters come from mountainmanjed's MAME cheats, documented on The Cutting Room Floor.

Virtua Fighter is SEGA's. This project is not affiliated with or endorsed by SEGA.

Licence

MIT for this project's own code: see LICENSE. Code from MAME keeps its BSD-3-Clause licence and notices; the rest of third_party/ keeps its own.

Support

If you enjoy it, you can buy me a coffee.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
mr-finster/vf2-recomp

Virtua Fighter 2 (Sega Model 2, 1994) for Mac, Windows and Steam Deck: the arcade's i960 program recompiled to native code, up to 6x, widescreen, smooth 120 fps. Bring your own vf2.zip.

108
Nov 26, 2026
RepositoryC++
tmcleroy/cps2recomp

CPS-2 Recomp: unofficial native PC ports of Capcom CPS-2 arcade games (Street Fighter Alpha 2, Super Puzzle Fighter II Turbo, Vampire Savior) via static recompilation, with training modes, in one launcher: macOS, Linux, Steam Deck, Windows. Requires your own ROM sets. Beta.

219
Nov 26, 2026
RepositoryC++
mr-finster/vf3-recomp

Virtua Fighter 3 (Sega Model 3, 1996) for Mac, Windows and Steam Deck: the arcade's PowerPC program recompiled to native code, up to 6x, widescreen, smooth 120 fps. Bring your own vf3.zip.

126
Nov 30, 2026
RepositoryC++
TeamGDB/Yakumo

Static recompilation of a PSP game into a native executable. Vulkan and SDL3. Bring your own copy of the game.

638
Nov 18, 2026
RepositoryC++
yozander2009-stack/Metroid-Dread-Recomp

Static recompilation of Metroid Dread (Switch, 2.1.0) for Windows, Linux and Steam Deck. Bring your own dump: no game files, keys or dumping tools included.

489
Nov 27, 2026
RepositoryC++
gamboozino/ng2recomp

Ninja Gaiden II (Xbox 360, 2008) statically recompiled into native Linux and Windows builds, drawn by its own Vulkan renderer. A steady 60 fps, up to 8x render scale, widescreen and ultrawide, keyboard and mouse, mods, Steam Deck ready. Bring your own copy of the game.

383
Dec 2, 2026
RepositoryC
gamboozino/ngbrecomp

Ninja Gaiden Black (Xbox, 2005) statically recompiled into native Linux, Windows and Android, drawn by its own Vulkan renderer. A steady 60 fps, widescreen and ultrawide, keyboard and mouse, touch controls on Android, Steam Deck ready. Bring your own copy of the game.

416
Nov 29, 2026
RepositoryC
griches/EternalDarknessRecomp

Eternal Darkness: Sanity's Requiem static recompilation (DolRecomp + GXRuntime) for Mac, Windows and Linux / Steam Deck. Bring your own disc.

222
Nov 6, 2026
RepositoryC++
finalburnneo/FBNeo

FinalBurn Neo - We are Team FBNeo.

1.6k
Dec 1, 2026