GT5 Recomp

GT5 Recomp is a PC port of Gran Turismo 5 built by static recompilation, running on Windows and Linux with Direct3D 12 or Vulkan.

README

GT5 Recomp: Gran Turismo 5, PS3 to PC static recompilation

Newest version Windows x64, Direct3D 12 or Vulkan Linux x64, Vulkan MIT license Discord: join the Workshop

Install · Launcher · Updating · FAQ · Changelog · Status · Modding · Discord

Join MormonFTP's Workshop on Discord: install help, test reports, new releases and racing talk

GT5 Recomp

An unofficial PC port of Gran Turismo 5 (PS3), made by static recompilation. The game's PowerPC and SPU code is translated to C++ and compiled for x64; the PS3's graphics, sound, input and system calls are reimplemented (Direct3D 12 or Vulkan for the RSX). It runs on Windows, and a native Linux build is available.

It is built on ps3recomp and borrows from the GT5 Prologue port, both by Ned Heller (sp00nznet).

You need your own GT5 disc. Nothing from the game is in this repository: the installer builds the game on your PC from your own dump. The Europe (BCES00569), North America (BCUS98114) and Asia (BCAS20108) releases run, on the disc version 1.00 or with game updates up to 2.17. See Which copy of GT5.

Contents

Install

On Windows 10 or 11:

  1. Download GT5-Installer.bat and double-click it. If Windows warns about a downloaded file, choose More info, then Run anyway.
  2. Pick your GT5 game (the folder of your disc dump with PS3_GAME in it, or an .iso) and press Install.

The installer downloads this code and puts everything it needs in the install folder: Git (only if the PC has none), Python and the compiler tools (about 1.5 GB). Nothing is installed into Windows, and Visual Studio is not installed or changed. It unlocks your game's executable with the port's own tool (no RPCS3, no PS3 system software file), builds the game (about an hour the first time), adds AMD FSR and, on an NVIDIA RTX card, NVIDIA DLSS, and puts Gran Turismo 5 (PC) on your desktop. Nothing from the game is uploaded. The line next to Install names the third-party licences that apply (Microsoft's C++ libraries, NVIDIA DLSS); pressing Install accepts them.

To do it by hand, see Setup. For Linux, see Linux.

The launcher

The GT5 launcher: Display settings, with a big Play button

The desktop shortcut (or GT5Launcher.exe in the install folder) opens the launcher: all settings in one window, then Play.

  • Display: renderer, resolution (up to 5K), anti-aliasing (SMAA and AMD FSR on any card, NVIDIA DLSS on RTX cards), shadows, frame generation, borderless full screen or a window, screen shape (ultrawide), frame rate (60 or 30) and asynchronous shader loading.
  • Controls: trigger layout, steering wheel, force feedback, mouse steering, keyboard keys.
  • Game: cockpit and outside camera, player name, language, volume, mods from GT5\mods.
  • LAN play: racing other PCs on your network.
  • Updates: your version, the newest one and what changed. Update now installs it.
  • Help: Save logs for a report (one .zip on the desktop, with your Windows user name, PC name and folders removed), the shader cache, game updates, DLC and the Master Mod.

The same settings are in the game's own menu: F1, or hold Select + Start on a controller. Both write GT5\settings.bat, which play.bat reads, so play.bat still works. The launcher is compiled on your PC from launcher/GT5Launcher.cs each time the game is built.

Updating

Releases are numbered (v0.1.0, v0.1.1, ...) and listed on the Releases page. To be told about new ones, click Watch > Custom > Releases at the top of this page.

  • Launcher: the Updates page shows a new version when there is one. Update now installs it and opens the launcher again. If it stops, the reason is in GT5\logs\update.log.
  • Or double-click Update.bat, or run in the install folder:
powershell -ExecutionPolicy Bypass -File update.ps1

An update downloads the new version, regenerates the game code only when needed, and rebuilds what changed. Your saves (GT5\gamedata), game update data (GT5\hdd0), game files, shader cache and settings are kept. The previous gt5.exe is kept as GT5\build\gt5.previous.exe. If a file you edited clashes with the new version, your copy is saved in backups\. Several versions behind is fine: it goes straight to the newest.

CommandWhat it does
update.ps1 -ListList every version; marks yours and the newest.
update.ps1 -Version v0.1.0Go back (or forward) to that version.
update.ps1 -TestThe current test build. A plain update goes back.
update.ps1 -DevThe newest changes, before they're released.
update.ps1 -NoBuildSwitch versions without building; build later with GT5\scripts\build.cmd gt5.
update.ps1 -ForceRegenerate and rebuild everything.

No update.ps1 in your folder (set up before v0.1.0)? Run git pull first (if it complains about local changes, git stash, git pull, git stash pop). A ZIP download can't update: clone the repository as in Setup and move GT5\input, GT5\vfs, GT5\gamedata and GT5\hdd0 over from the old copy.

Test builds

Changes that are still being tried go into a numbered test build first. Releases and Update now never install one; you only get it if you ask.

  • Try it: launcher > Updates > Try test build N (greyed when there is none), or update.ps1 -Test.
  • Go back: Back to the release on the same page, or a plain update.ps1. Saves and settings stay.
  • Notes: the Test build N tab on the Updates page, the pre-release on the Releases page (tag test-build-N), and the Discord's #gt5-test-builds channel. Discussion #49 has the overview. Please say "test build N" when you report something.

Controls

DualSense, DualShock 4 (USB or Bluetooth), Xbox and other XInput pads and the keyboard all work, together or alone. Steering wheels and mouse steering work too.

Pad: the buttons are GT5's own, as on a PS3 pad (Cross / A accelerates, Square / X brakes, R2 / L2 shift); change them in the game's options. The in-game menu's Controls page has:

  • Triggers: Throttle and brake makes the right and left triggers analog throttle and brake while driving, with the bumpers shifting. It follows your button assignment in the game. Menus and replays keep the PS3 layout.
  • Button symbols: PlayStation (the game's own), Xbox, Keyboard (your bound keys) or Automatic.

Keyboard defaults: Z = Cross, X = Circle, A = Square, S = Triangle, Q / W = L1 / R1, 1 / 2 = L2 / R2, arrow keys = d-pad, Enter = Start, Tab = Select. Esc quits after asking (PS3_ESC_CONFIRM=0 quits at once).

ButtonGT5's default actionDefault key
CrossAccelerate (OK in menus)Z
SquareBrakeA
R2 / L2Shift up / down2 / 1
CircleHandbrake (Back in menus)X
TriangleReverseS
L1Look backQ
R1Headlights (flash, high/low beam)W
L3 / R3Horn / Wipersnone
Select / StartChange view / PauseTab / Enter
D-pad upGhostUp
D-pad left / rightSteeringLeft / Right
Right stick up / downAccelerate / Brakenone

The actions are GT5's own setting (Options > Hardware > Change Button Assignments). Left View, Right View and the separate light controls have no button by default: assign them to a free button there (d-pad down, left stick up/down, right stick left/right), then bind a key to that button.

Your own keys

Launcher > Controls > Keyboard keys: click a row and press a key (Esc cancels), right-click to add a second key, × to clear, Reset to defaults to start over. Or in GT5\settings.bat:

set "PS3_KEYS=cross:W,square:Space,l2:Q,r2:E,circle:LAlt"

button:key pairs separated by commas; cross:W/Up gives two keys, l1:none none. A key you bind stops doing its old job. On Linux, put export PS3_KEYS="..." in GT5/settings.sh.

  • Buttons: cross circle square triangle l1 r1 l2 r2 l3 r3 start select, the d-pad up down left right, and full stick pushes lstick_up lstick_down lstick_left lstick_right rstick_up rstick_down rstick_left rstick_right.
  • Keys: A-Z, 0-9, F1-F24, Num0-Num9, Space Enter Tab Backspace CapsLock LShift RShift LCtrl RCtrl LAlt RAlt Up Down Left Right Insert Delete Home End PageUp PageDown NumPlus NumMinus NumMultiply NumDivide NumDecimal Comma Period Slash Semicolon Apostrophe LBracket RBracket Backslash Minus Equals Grave IntlBackslash Mouse4 Mouse5, any case. Esc stays the quit key. Unknown names are skipped with a [keys] line in logs\play.err.

Mouse steering

Off by default. Turn on Steer with the mouse on the launcher's Controls page (or PS3_MOUSE_STEER=1). In races, move the mouse to steer: left button throttle, right button brake, middle button straightens the wheel. The cursor is hidden and kept in the window while you steer; Alt+Tab frees it. At the menus the mouse clicks OK (left) and Back (right) and the wheel scrolls (PS3_MOUSE_MENU=0 turns that off). The keyboard and pads keep working. The game sees an emulated steering wheel, so a real wheel isn't used at the same time.

SettingDefaultWhat it does
Mouse steering speed, PS3_MOUSE_STEER_SENS100Percent (1-1000). At 100, about a 1080p screen's width of movement goes from straight to full lock. Windows' pointer speed doesn't affect it.
Wheel straightens by itself, PS3_MOUSE_STEER_CENTERoffWhen the mouse stops, the wheel returns to centre at this percent of full lock per second (the launcher's Slowly / Medium / Quickly = 50 / 100 / 200).

LAN play

Two or more PCs on the same network race each other in the game's LAN Battle. Every PC needs the game at update 2.11 with the Master Mod (the same Master Mod version on each) and a car in the garage.

  1. Launcher > LAN play: tick Play on a local network, type your name, and pick This PC: the network the other PCs are on. The page is greyed until the game is at 2.11 with the Master Mod.
  2. Play. Windows may ask once whether the game may use the network: allow it.
  3. To host: Online Race > LAN Battle > Create New, set up the race, OK. When everyone is in, each player picks Go to Track, and the host Start Race.
  4. To join: Online Race > LAN Battle, pick the room (Triangle refreshes the list), Yes.
  5. To leave a race: Start > Exit. You go back to the room.

The others see your name with the last number of this PC's address, for example Jess-23: letters A-Z, digits, - and _ (other characters are left out).

If a room doesn't show up (another network, a VPN, some Wi-Fi networks, a PC on Linux), type the host's address in Other PCs on the joining PC: the address the host's launcher shows under This PC. Several addresses go with commas between them.

LAN password (optional, same page): with one, what the game sends on the network is encrypted, and only PCs with the same password see each other's rooms and can join. Every PC types the same one: letters, digits, spaces, - and _. Without it the game talks as a PS3 does, in the clear. If rooms stopped showing up, check that everyone has the same password, or none. The room connection is encrypted but not protected against someone changing packets on the way; the race traffic is.

Not available: voice chat, text chat, rankings and the other online services, and play over the internet without a VPN that puts the PCs on one network. The game sends nothing to the internet during LAN play.

Without the launcher, in settings.bat: set "GT5_LAN=1", set "GT5_LAN_IP=<this PC's address>", set "GT5_LAN_ID=Jess-23" (your name in the room; without it, Player- and the address's last number) and, if needed, set "GT5_LAN_PEERS=<other addresses>" and set "GT5_LAN_PASSWORD=<the password>". On Linux the same as export lines in GT5/settings.sh; there, without GT5_LAN_ID, the name comes from PS3_USER_NAME.

Current state

Playable: 45 to 58 fps in races on an i9-14900KF and RTX 4070 Ti SUPER

Playable. Most of the game's modes work. STATUS.md has the tested PC, what works and the known issues; CHANGELOG.md has every change with dates. Releases are also posted in Announcements.

Feedback

Every report helps, good or bad, especially from laptops, integrated graphics and AMD cards.

To...Use
Say how it wentTried it
Report a problemSomething's broken
Suggest a changeSuggest a change
Share results or ask for helpDiscussions
ChatThe Workshop Discord: #gt5-help, #gt5-test-reports, #gt5-chat (mormonftp there)

FAQ

QuestionShort answer
Steering wheels and force feedback?Yes. Several wheels run, see below.
Ultrawide (21:9, 32:9)?Yes: a wider 3D view, HUD kept 16:9 in the middle.
Resolution above 1080p?Yes: up to 5K (launcher, Display, Resolution).
Cockpit field of view, seat position, level horizon?Yes: launcher, Game, Camera (more).
Free camera?Yes: F6 in a race or replay (more).
US or Asian copy?Yes. Japanese untried.
Game updates (2.xx), DLC, Master Mod?Yes: the launcher installs them (more).
Vulkan?Yes, as an option. DirectX 12 is the default and faster.
Linux, Steam Deck?Yes, native build (Linux, Steam Deck). Proton and Wine untried.
Online?No.
A ready-made download?No. The installer builds it from your disc.
Slow PC or laptop?See below.
A processor without AVX2?Yes, more slowly (older processors).

Q: Do steering wheels and force feedback work?

Yes. Your PC wheel appears to the game as a Logitech G27 (900°, three pedals, paddles, H-shifter), and the game's force feedback is played on it through DirectInput. Plug the wheel in before starting the game; it is found automatically. Players have used a Logitech G923, a Logitech Driving Force Pro, a Thrustmaster T-GT and a Genius Speed Wheel 3. Buttons and pedals are preset for Logitech G29 / G923 / G920; Thrustmaster wheels get Thrustmaster's pedal layout. A wheel without a d-pad moves through the menus with the rim (left / right) and pedals (down / up).

Most fixes are in the game's menu: F1 > Controls > Wheel buttons and pedals (pedals and buttons on separate USB devices, per-pedal devices, a reverse button). Otherwise add a line to GT5\settings.bat:

ProblemFix
Wheel not foundset "PS3_WHEEL=<part of its name>" or its VID:PID (play.err lists every controller in [wheel] found lines)
Forces push the wrong wayset "PS3_WHEEL_FFB_INVERT=1"
Forces too strong or weakset "PS3_WHEEL_FFB=60" (percent, 0 = off)
Steering too quick or slowSet the wheel to 900° in its software, or set "PS3_WHEEL_RANGE=1080"
Pedals or buttons on their own USB deviceset "PS3_WHEEL_PEDAL_DEVICE=<name>", set "PS3_WHEEL_BUTTON_DEVICE=<name>"; per pedal: PS3_WHEEL_THROTTLE_DEVICE, PS3_WHEEL_BRAKE_DEVICE, PS3_WHEEL_CLUTCH_DEVICE
A pedal does nothing or the wrong thingset "PS3_WHEEL_TRACE=1", see which axis moves in play.err, then e.g. set "PS3_WHEEL_PEDALS=throttle=Y,brake=RZ,clutch=Z" (inv reverses one: brake=RZinv)
No clutch pedalset "PS3_WHEEL_PEDALS=throttle=Y,brake=RZ,clutch=none" (usually detected automatically)
Throttle and brake on one axis, swappedset "PS3_WHEEL_PEDALS=throttle=Yinv"
Buttons wrong or missingset "PS3_WHEEL_BUTTONS=cross=1,circle=3,start=10" with the numbers Windows' joy.cpl shows. Names: cross square circle triangle r1 l1 r2 l2 select start r3 l3 gear1..gear6 gearr plus minus dialcw dialccw up down left right, and throttle / brake / clutch to use a button as a pedal
No H-shifter, need reverseset "PS3_WHEEL_BUTTONS=gearr=6" (manual gearbox: hold it with a little throttle)
Don't use the wheelset "PS3_WHEEL=off"

If something is wrong, report it with GT5\logs\play.err: its [wheel] lines show the wheel, its axes and what the game sent.

Q: Widescreen and ultrawide?

GT5 is a 16:9 game, so 16:9 monitors are filled as on a PS3. On ultrawide monitors the port draws a wider 3D view (more of