[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112753":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":30,"discoverSource":31},112753,"Resistance3Port","miroslavdanutalexandru-alt\u002FResistance3Port","miroslavdanutalexandru-alt","Native PC static recompilation port of Resistance 3 (PS3)",null,"C",96,5,2,11,0,1,21,36,13,58.2,"Other",false,"main",true,[],"2026-11-21 00:22:27","2026-11-22 17:53:08","# Resistance 3 — native PC port\u002Frecomp (work in progress)\n\nA static recompilation of the PS3 game *Resistance 3* into a native Windows program. No emulation of the CPU: the game's PowerPC and SPU code is translated to C\u002FC++ and compiled for your PC. Graphics go through RPCS3's Vulkan renderer, with NVIDIA DLSS \u002F AMD FSR upscaling, 60 fps, keyboard and mouse controls, and higher resolutions.\n\n> ⚠️ **Not Perfect.** I have only tested it **on my PC** (Ryzen 5 5600X, GeForce RTX 5070, 32 GB RAM, Windows 11, 1080p screen) and haven't beaten the game. Only the intro and the opening Haven level have been played; past that it's untested, so things could go wrong. Some crashes or freezes may happen.\n\n> **No game files and no translated game code are distributed, in this repository or in the installer.** You need your own copy of the game. Setup decrypts its program on your PC, translates it into C\u002FC++ and builds the game there; the generated code and the built game never leave your PC, and no prebuilt game program is released. The repository holds the port's own code plus the small references it needs to find its place in the game's program: function addresses, patch values and short context lines from the generated code (`tools\u002Fhooks\u002F` and `project\u002Fr3_patches.cpp`).\n\n## What you need\n\n- A PC running Windows 10 or 11 (64-bit).\n- A CPU with AVX2: Intel 4th gen or newer, or any AMD Ryzen. Older CPUs without AVX2 won't run it.\n- A Vulkan 1.3 GPU. DLSS needs a GeForce RTX card; everything else (including FSR) works on AMD, NVIDIA and Intel. Only tested on NVIDIA so far.\n- Your own dump of **Resistance 3, US disc (BCUS98176), version 1.00**. This is the folder that contains `PS3_GAME`, the same kind of folder RPCS3 uses. Other regions and patched versions are not supported yet.\n- About 50 GB of free disk space: ~37 GB for the game files and the rest for the build tools and the build.\n- An internet connection for the setup.\n\n## Install\n\n**Quick install (recommended):**\n\n1. Download the release zip from the Releases page and unzip all of it to a folder with no spaces in the path, for example `C:\\Games\\Resistance3Port`.\n2. Run **`Setup.exe`** in that folder. (It is not code-signed: if Windows says *\"Windows protected your PC\"*, click **More info → Run anyway**.)\n3. Pick your game: **ISO...** or **Folder...**. Setup checks the copy at once and says what to do if it can't be used (see *If your game copy is not accepted* below).\n4. Click **Install** and wait. Setup installs the missing build tools (one administrator prompt), copies your game files, builds the game with as many parallel jobs as your RAM allows, adds Start-menu and desktop shortcuts and starts the launcher. It shows the progress and the time left. If it stops (error, sleep, power cut), run `Setup.exe` again and click **Resume**.\n\nThe release contains no game code: the game is always built from your own copy. Requirements, disk space, build times, uninstalling and troubleshooting (SmartScreen, antivirus, low RAM, no winget): [docs\u002FINSTALL.md](docs\u002FINSTALL.md).\n\n### Manual install (advanced)\n\n**With the Inno installer** (if a `-Setup-\u003Cversion>.exe` is on the Releases page): download `Resistance3Port-Setup-\u003Cversion>.exe` from the Releases page and run it. It installs the port (default `C:\\Games\\Resistance3Port`), adds Start-menu and desktop shortcuts, and asks for your game. It lists the copies it finds on the PC (common folders and RPCS3's game list); you can also type or paste a path, or use the **ISO...** \u002F **Folder...** buttons. It checks the copy before going on and says what is wrong and what to do if it can't be used (see *If your game copy is not accepted* below). At the end it opens **Setup**, the window with the progress bar, with your game already filled in: click **Install** there (step 2 below). The installer contains only the port; the game files always come from your own copy. Use a decrypted ISO or a game folder (the same kind RPCS3 uses). Tick **Portable mode** to keep settings only in the install folder.\n\n**By hand:**\n\n1. Download this repository: click on Code at the top, then Download ZIP, then unzip it somewhere with no spaces in the path, for example `C:\\Games\\Resistance3Port`.\n2. Double-click **`Setup.bat`**. It will:\n   - install the free build tools if they're missing (Visual Studio 2022 Build Tools, LLVM, CMake, Ninja, Python, Git), using `winget`;\n   - look for your game (an ISO or a game folder), check it, then copy it into the port folder (or move a folder, if it's on the same drive);\n   - decrypt the game's program file, using the application keys from RPCS3's public source code;\n   - download RPCS3's source at a fixed version and apply this port's renderer patch (`ps3recomp\u002Fpatches\u002Fr3-rpcs3.patch`);\n   - generate the game code from your copy and build the game.\n\n   The first run takes a while: tool installs plus a 20–60 minute build. At the end, Setup offers to put a \"Resistance 3\" shortcut to the launcher on your desktop.\n3. Play with **`Launcher.exe`**. It detects your PC and recommends settings (**Auto-detect**), and has all the settings (display mode, resolution, frame rate, VSync, anti-aliasing, upscaling, texture filtering, sharpening, frame generation, controls, notifications, mods and updates) and the key bindings. See [Launcher](#launcher).\n\nYou only need to run Setup again after downloading a newer version of the port; otherwise just use the launcher.\n\n**Choosing the game in Setup.bat:** it lists the copies it found, numbered. Type a number, or type or paste the path of the ISO or game folder (you can also drag it into the window). **B** opens a file picker (Windows only). `Setup.bat -Game \"\u003Cpath>\"` skips the question. The path can be an ISO, the game folder, or a file inside it. An ISO is opened by Windows, copied from and closed again; if Windows can't open it, Setup reads it directly.\n\n### If your game copy is not accepted\n\nThe installer and Setup check the copy before copying anything. The supported version is **Resistance 3 (US disc, BCUS98176)**, about 34.6 GB.\n\n| Message | What to do |\n|---|---|\n| compressed archive (.zip, .7z, .rar) | Extract it first, then pick the ISO or folder inside. |\n| PlayStation Store package (.pkg) \u002F game update folder | Pick the disc copy. Game updates are not needed. |\n| not &lt;game&gt; \u002F from another region | Use the supported disc version listed above. |\n| PlayStation Store version | Only the disc version is supported. |\n| encrypted disc image \u002F PARAM.SFO is not valid | Decrypt the ISO first (for example PS3Dec with the disc key from the `.dkey` file), or use a game folder from a PS3 or RPCS3. |\n| program file was decrypted or replaced (plain ELF) | Use the original, unmodified files. Setup decrypts them itself. |\n| files are missing \u002F smaller than expected | The copy is incomplete. Copy or dump it again. |\n| different from the known file (warning) | The copy may be modified. You can continue; Setup stops later if the decrypted program is not the supported version. |\n| not enough free space | Free up space, or install on another drive. |\n\nThe checks run on your PC only. Nothing is uploaded.\n\n**Updates:** the launcher checks this repository's Releases page once at start and says when a newer version is out (it only opens the download page; nothing is downloaded or replaced). Turn it off with the launcher's *Check for updates* option (Advanced page) or the environment variable `PORT_NO_UPDATE_CHECK=1`. The installed version is in the `VERSION` file.\n\n**Settings and controls** (`settings.ini`, `settings.bat`, `controls.txt`, `mouselook.cfg`) are also kept in `%USERPROFILE%\\Saved Games\\Resistance 3\\config`. Missing files are restored from there when the launcher or game starts, so they survive reinstalling or updating the port. To keep everything in the port folder only, create an empty file named `portable.txt` next to `Launcher.exe` (the installer's *Portable mode* does this). Saves are still kept in the port folder (`gamedata`); the uninstaller asks before deleting it, and its default is to keep it.\n\n**No console window:** the launcher starts the game without a console. The game's output goes to `logs\\run.log`.\n\n**First launch:** the game shows its own one-time setup screens and an autosave notice. Before the game starts, the launcher prepares the shader cache from your game files (a progress panel; **Skip for now** or Esc skips it), and the game then compiles every known shader behind a **Compiling shaders N \u002F M** panel (see *Shader precompile*), so levels play without shader stutter from the first visit. Shaders are cached for later starts.\n\n## Controls\n\nKeyboard and mouse are supported out of the box: WASD move, Space jump, C\u002FCtrl crouch, Shift sprint, direct mouse look, Mouse1 fire, Mouse2 aim, Mouse3\u002FF secondary fire, R reload, V\u002FMouse4 melee, G\u002FMouse5 grenade, 1\u002F2 grenade type, Q \u002F wheel weapon select, E use, Esc pause, Tab select, F8 releases the mouse. Controllers work too. All keyboard and mouse bindings can be changed in the launcher (Controls page, two keys per action; saved in `controls.txt`).\n\n**Button prompts follow the device you used last.** Touch the keyboard or mouse and every on-screen prompt shows your keys; press a button or move a stick on a controller and they switch to that controller's buttons. Switching is instant and works anywhere, mid-game or in a menu. With an Xbox \u002F XInput controller (or any non-PlayStation pad) the prompts show Xbox buttons, drawn by the port as simple coloured letters (no copied artwork):\n\n| PS3 | Xbox | PS3 | Xbox |\n|---|---|---|---|\n| Cross | A | L1 \u002F R1 | LB \u002F RB |\n| Circle | B | L2 \u002F R2 | LT \u002F RT |\n| Square | X | L3 \u002F R3 | LS \u002F RS (stick click) |\n| Triangle | Y | Select \u002F Start | View \u002F Menu |\n| D-pad | D-pad | Left \u002F right stick | Left \u002F right stick |\n\nWith the XInput backend (`PAD_BACKEND=xinput`), a Sony DualShock 3\u002F4 or DualSense that is plugged in (detected by its USB\u002FBluetooth ID, used through DS4Windows \u002F Steam Input as XInput) keeps the PlayStation symbols; with SDL3 (default) the prompts follow the controller type, see *Controllers (SDL3)* below. The launcher's **Controller button prompts** option forces Xbox or PlayStation.\n\nWhere the prompts are replaced: Resistance 3's menus and HUD are Scaleform (Flash) movies, and every button symbol in them, on every screen, is one of the game's 18 `img:\u002F\u002FiconN` button pictures. The port swaps those pictures for the device in use, which covers the title \u002F \"Press Start\" screen, the main menu, the lobby and options, the pause menu, loading-screen tips, the HUD and tutorial hints. Text that names a button inside a sentence (tutorials, hints) uses a symbol character; on keyboard that is rewritten to the key's name. PlayStation Move pictures are left alone. Prompts name the game's default button layout; if you remap buttons in the game's own options, they still name the default ones. `R2_KEY_PROMPTS=0` turns all of this off (PS3 symbols always).\n\n**Mouse look is direct:** raw mouse counts turn the camera's yaw and pitch each frame (× the launcher's sensitivity, with its invert option), not an emulated right stick: no acceleration, dead zone or speed cap. While aiming down sights the turn rate is scaled by the scope zoom (`R2_ZOOM_SENS`: 1 = default, 0 = no scaling, up to 2). Mouse movement made while the camera isn't yours (menus, pause, cutscenes) is dropped, so the view doesn't jump afterwards. The launcher's **Mouse aiming = Classic** switches back to stick emulation. The game has no mouse pointer in its menus; use the keyboard (arrows \u002F Enter \u002F Esc) or a controller. F8 frees the cursor.\n\n**Aiming and sticks** (launcher, Controls page):\n\n| Option | Values | Variable |\n|---|---|---|\n| Vertical mouse sensitivity | **Same as horizontal**, 50 %, 75 %, 125 %, 150 %, 200 % | `PAD_MOUSE_SENS_Y=\u003C0.1..4>` (multiplies the up\u002Fdown mouse speed, direct and classic mouse aiming) |\n| Aiming sensitivity | **Game default**, 50 %, 75 %, 125 %, 150 % | `R2_ADS_SENS=\u003C0.1..3>`: extra mouse multiplier while aiming down the sights or through a scope (on top of the zoom scaling) |\n| Aim mode | **Hold**, Toggle | `PAD_AIM_TOGGLE=1`: the Aim key \u002F left bumper (L1) toggles aiming; menus release it. Keyboard, mouse and controller |\n| Stick deadzone | **Default** (XInput standard, per axis), Small 8 %, Medium 15 %, Large 25 %, Very large 35 % | `PAD_DEADZONE=\u003C0..0.9>` (radial) |\n| Stick response curve | **Default**, Linear, Precise (1.6), Very precise (2.2), Fast (0.7) | `PAD_CURVE=\u003C0.5..3>`: stick travel past the deadzone raised to this power |\n\n**Controllers (SDL3).** The port reads controllers through SDL3 (built in, no extra DLL): Xbox, DualShock 4, DualSense, DualShock 3 (with its Windows driver), Switch Pro and Joy-Con work directly. **DS4Windows and Steam Input are no longer needed** (they still work; if they expose a virtual Xbox pad next to the real controller, the port ignores the duplicate so it doesn't become a ghost player 2). Controllers can be plugged in and out at any time, no restart, up to 8. Rumble works on every pad that has it (DualSense included), and a DualShock 4 \u002F DualSense light bar shows the player's colour (player 1 blue, player 2 red). If SDL3 can't start, the port falls back to XInput automatically (`logs\\run.log` shows `[cellPad] controllers: SDL3` or `SDL3 could not start`).\n\n**Button prompts by controller type:** with *Controller button prompts = Auto*, a PlayStation pad (DualShock 3\u002F4, DualSense) shows PlayStation symbols and an Xbox or other pad shows Xbox letters. Switch controllers are read by button position (the bottom button is Cross); with *Nintendo button layout = Nintendo style* A (right) confirms and B cancels as on a Switch, and the prompts show the Xbox-style letters. Under Steam Input the real controller type is used when SDL reports it; otherwise set the prompts by hand.\n\n**Gyro aiming** (DualShock 4, DualSense, Switch Pro, Joy-Con; off by default): turning the controller turns the view, added directly to the camera like the mouse (smooth, not limited by the stick). *While aiming* only uses it with the Aim button (L1 \u002F LB) held. Leave the controller still for about a second after it connects so the resting drift is calibrated. In split-screen co-op each player's gyro moves only their own view (as a right-stick input, like the second player's mouse).\n\n| Option (launcher Controls page \u002F in game *More PC Options*) | Values | Variable |\n|---|---|---|\n| Controller support | **SDL3**, XInput | `PAD_BACKEND=sdl3\\|xinput` (restart). `sdl2` is accepted and uses SDL3 |\n| Gyro aiming | **Off**, On, While aiming | `PAD_GYRO=0\\|1\\|aim` |\n| Gyro sensitivity | **2x**, 0.5x-6x | `PAD_GYRO_SENS=\u003C0.05..20>` (view degrees per controller degree) |\n| Gyro vertical | **Normal**, Inverted | `PAD_GYRO_INVERT_Y=1` (on top of the game's own invert setting) |\n| Gyro turning axis | **Controller**, Player | `PAD_GYRO_SPACE=local\\|player` (player = yaw around gravity, works flat or upright) |\n| Gyro calibration | **On connect**, Off | `PAD_GYRO_CALIBRATE=0` turns off the 1 s still-calibration |\n| Light bar | **Player colour**, Off | `PAD_LIGHTBAR=0` |\n| Nintendo button layout | **By position**, Nintendo style | `PAD_NINTENDO_SWAP=1` |\n| (no launcher option) | **On** | `PAD_DEDUP=0` keeps virtual duplicates (Steam Input \u002F DS4Windows \u002F ViGEm) as separate controllers |\n| (no launcher option) | **360** | `PAD_GYRO_STICK_DPS=\u003Cdeg\u002Fs>`: gyro speed that equals a full right stick (co-op \u002F classic mouse aiming, where gyro drives the stick) |\n\nWith `PAD_BACKEND=xinput` the old behaviour returns: XInput only (up to four), PlayStation pads through DS4Windows \u002F Steam Input, no gyro or light bar.\n\n## Local co-op\n\nTwo players on one PC, split-screen, as on PS3. No PSN account is needed: the port provides a second local user.\n\n**Starting it:** plug in two controllers (or one, with *Player 2 uses keyboard and mouse*). Main menu → **Campaign** → the co-op \u002F split-screen option. On the lobby screen, press **START on the second controller** (or Enter \u002F Esc on the keyboard for a keyboard player 2): on PS3 this opens the \"select a user\" box; the port answers it at once with a local user named **Player 2**, and player 2 is in. Start the chapter and the screen splits.\n\nResistance 3 counts at most two local players, ignores PlayStation Move pads, and won't let one user join twice (so player 2 is always the second local user).\n\n**Who is who:**\n\n- Player 1 = the keyboard and mouse plus the first controller found (as in single player).\n- Player 2 = the next controller. A controller keeps its player while it stays plugged in. A controller plugged in later takes the lowest free player; when one is unplugged, its player has no input until it is plugged back.\n- With two local players the direct mouse look is off. The mouse then moves the keyboard player's view like a right stick (it would otherwise turn both heroes).\n\n**Options** (launcher, Controls page; or `settings.bat`):\n\n| Option | Values | Variable |\n|---|---|---|\n| Local co-op (split-screen) | **On**, Off | `PAD_COOP=0`: the game sees only player 1. Extra controllers (or duplicate virtual pads from Steam Input \u002F DS4Windows) can't join |\n| Player 1 controller | **Automatic**, Controller 1-8 | `PAD_P1_CONTROLLER=\u003C1..8>`: the controller that is player 1 (SDL3: in the order they were connected; XInput: 1-4, Windows' XInput order) |\n| Player 2 controller | **Automatic**, Controller 1-8 | `PAD_P2_CONTROLLER=\u003C1..8>`: the controller that is player 2 (numbered as above) |\n| Player 2 uses keyboard and mouse | **Off**, On | `PAD_P2_KEYBOARD=1`: player 1 = the first controller only, player 2 = keyboard and mouse |\n| (no launcher option) | **2** | `PS3_LOCAL_USERS=\u003C1..4>`: local users the game sees. `1` = player 2 can't sign in. `PS3_USER2_NAME=\u003Cname>` renames player 2 |\n\n`logs\\run.log` shows which controller each player got (`[cellPad] player 2 \u003C- controller 2`) and when the game counts two local players (`[coop] local players: 2`).\n\n**Known limits:** Player 2's progress and settings are not saved separately (as on PS3 for a guest player). If you use NVIDIA DLSS, it may not work right in split-screen. Turn it off (or use FSR \u002F no upscaler) for co-op if the image smears or one half looks wrong.\n\n## PC features\n\n- **PC menu:** press **F10**, or hold **View + Menu** (Select + Start) on a controller for 1.5 s, for a small overlay menu: **Resume**, **PC Options** and **Quit to Desktop**. The game is paused while it is open. *PC Options* changes, live: frame rate, upscaler (DLSS \u002F FSR 3.1 \u002F off; applies at the next start), mouse sensitivity, field of view and controller prompts (Auto \u002F Keyboard keys \u002F Xbox \u002F PlayStation). Each change is saved where the launcher keeps it (`settings.ini` + `settings.bat`, `controls.txt`). Arrow keys \u002F D-pad move, Enter \u002F A select, Esc \u002F B back. The game's own pause and main menus are Scaleform (Flash) movies the port doesn't edit, so a small hint, *F10: PC menu*, appears while the pause menu is up and once at start. `R2_MENU_PC=0` turns the menu off (F10 \u002F View+Menu then go straight to the quit box), and `R2_MENU_PC_HINT=0` hides the hint (it is off by default in exclusive fullscreen).\n- **PC wording:** the game's text is adjusted where it talks about the console (rules in `project\\r3_pctext.cpp`). In English: the epilepsy warning's \"BEFORE USING SEE THE INSTRUCTION MANUAL INCLUDED WITH YOUR PS3™ SYSTEM FOR MORE DETAILS.\" → \"STOP PLAYING AND CONSULT A DOCTOR IF YOU FEEL UNWELL.\", \"Press and hold the PS button to quit the application\" → \"Press F10 to quit the game\", \"Insufficient Hard Disk Drive space\" → \"Insufficient disk space\", \"Do not switch off the power when the HDD access indicator is flashing\" → \"Do not close the game while it is saving\", \"Logging into PlayStation®Network\" → \"Signing in to online services\", \"PlayStation®Network account\" → \"online account\", \"PlayStation®Store\" → \"online store\", \"USB keyboard\" → \"keyboard\", and \"wireless controller\" → \"controller\". Other languages: \"PLAYSTATION®3\" \u002F \"PS3\" → \"PC\", \"PlayStation®Network\" → \"Online\", \"PlayStation®Store\" → \"Store\", and the PS button in quit messages → F10. Credits, trademark lines and PlayStation Move \u002F Eye messages are left as they are. Only the text in memory is changed (the game files aren't touched). `R3_PC_TEXT=0` turns it off (`R2_PC_TEXT` is still read when `R3_PC_TEXT` is unset).\n- **Quit to desktop:** *Quit to Desktop* in the PC menu (or F10 \u002F View + Menu with `R2_MENU_PC=0`). A small box asks *Quit to desktop?*: Enter \u002F Space \u002F A = yes, Esc \u002F Backspace \u002F B = no. While it is shown the game is paused and gets no input. On yes (and also when the window is closed with Alt+F4 or the X button) the port waits for a save in progress to finish (up to 15 s, \"Saving...\"), flushes open files and exits. The game's own menus have no Quit entry; adding one would mean patching the game's Flash menus without being able to test them, so the PC menu carries it instead.\n- **Alt+Enter** switches between borderless fullscreen and windowed. **Alt+Tab** is safe in borderless and windowed mode.\n- **Monitor** (launcher, Display › Screen): which screen the window opens on (`RSX_MONITOR=\u003Cn>`, 1-based in Windows' order; empty = primary).\n- **When the game is in the background** (launcher): *Pause and mute* (default) freezes the game and silences it when the window loses focus; *Mute only*; *Keep running* (`R2_BACKGROUND=pause|mute|run`). On focus loss the cursor is always released and shown; it is also shown while the quit box is up or the game is paused this way, and captured\u002Fhidden again when you click back in.\n- **Skip intro movies** (launcher, default on): the studio logo video and the opening movie are skipped, so the game starts at the title screen (`SKIP_INTRO=1`, set by `run.bat`; `SKIP_INTRO=0` to watch them).\n- **Frame rate in menus** (launcher): caps the frame rate at 60 or 30 fps whenever you are not controlling your character (menus, loading screens, cutscenes); gameplay keeps the normal frame rate (`PORT_MENU_FPS=\u003Cfps>`, minimum 30; empty\u002F0 = off, the default).\n- **Screenshots:** **F12** or **PrtScn** saves `screenshots\\R3_\u003Cdate>_\u003Ctime>.png` in the game folder (a short \"Screenshot saved\" note appears). The launcher's About page has **Open screenshots**.\n- **Saves** are in the game folder: `gamedata\\dev_hdd0\\home\\00000001\\savedata\\BCUS98176_SAVE_0` (game settings are saved there too, as on the PS3). The launcher's **Saves & tools** page backs them up and restores them (see *PC extras*). **Open save folder** (launcher, About) opens it. `PS3_GAMEDATA_ROOT=\u003Cdir>` moves the whole `gamedata` tree elsewhere (saves then go to `\u003Cdir>\\dev_hdd0\\home\\00000001\\savedata`). The port's own settings are `settings.ini` \u002F `settings.bat` and `controls.txt` in the game folder.\n- **Reset all to defaults** (launcher, About) resets display, graphics, PC options, keys and mouse (saves untouched). **Auto-detect** (Display, Graphics and Upscaling & Frame Gen pages) resets only display and graphics; **Restore default controls** only the controls.\n- **Crash and hang reports:** if the game crashes, a minidump is written to `logs\\crash\\R3_\u003Cdate>_\u003Ctime>_crash.dmp` and a one-line summary is added to `logs\\crash\\crashes.txt`. If no game frame is drawn for 90 s while the game isn't paused, an `R3_\u003Cdate>_\u003Ctime>_hang.dmp` with every thread's state is written once per stall and the game keeps running. Send these with the session's log when reporting a problem. `R2_HANG_S=\u003Cseconds>` (≥ 10) changes the hang limit, `R2_CRASH_DUMPS=0` turns reports off, `R2_CRASH_DUMPS=full` writes full-memory dumps (large).\n- **Renderer fatal errors:** if the RSX renderer thread hits a fatal error, the reason is printed to the console\u002Flog as `[rpcs3] thread '...' terminated due to fatal error: ...` (and to `logs\\rpcs3_rsx.log`). The previous run's `rpcs3_rsx.log` is kept as `logs\\rpcs3_rsx.prev.log`, so it survives one restart. A dead renderer thread looks like a hang (the game stops drawing but keeps running), so include these lines when reporting one.\n- **Performance overlay:** **F3** shows or hides frame rate, frame time (average and worst) and, with the Compatible renderer, draws per frame and the RSX thread's time per draw, in a corner of the game window. Launcher *Performance overlay*: Off (F3 shows it, the default), On at start, Disabled (F3 does nothing) = `R2_OVERLAY` unset \u002F `1` \u002F `0`; `R2_OVERLAY_POS=tl|tr|bl|br` picks the corner (top left by default). It is drawn into the game's own image (`PORT_OSD`), so it also shows in exclusive fullscreen. While it is shown the renderer's counters are on (as with `R2_RSX_PROF=1`, without the log output).\n- **Trophies as local achievements:** when the game awards a trophy the port shows a small notification in the corner of the window and records it in `%USERPROFILE%\\Saved Games\\Resistance 3\\trophies.json` (name, grade, date). The trophy list (59 trophies, comm id `NPWR01841`) is read at run time from your own game files (`gamefiles\\PS3_GAME\\TROPDIR\\NPWR01841_00\\TROPHY.TRP`); nothing of it ships with the port. The platinum trophy is awarded when every trophy it counts is unlocked. The runtime's own record stays in `gamedata\\trophies\\NPWR01841.json`. The launcher's **Trophies** page shows a summary at the top (earned \u002F total, percentage, a progress bar and the count per grade), then every trophy with its icon from `TROPHY.TRP` (greyed until earned), name, description, grade and the date it was earned, newest first. Hidden trophies show as *Hidden trophy* until earned. It merges both records (a trophy counts if either has it; the earliest time wins), so the platinum the port awards also shows. Before anything is earned it says *Play the game to start earning trophies*. The page reads nothing until it is opened, re-reads only when those files change, and never writes to them. `R2_TROPHY_TOAST=0` (launcher *Trophy notifications: Off*) records them without the notification.\n- **Mods folder:** launcher *Mods folder: On* (`R2_MODS=1`) loads replacement game files from the `mods` folder next to the game; `R2_MODS=\u003Cfolder>` uses another folder. Each sub-folder is one mod laid out like the game's `PS3_GAME` folder: `mods\\\u003Cmod>\\USRDIR\\...` replaces the same file under `gamefiles\\PS3_GAME\\USRDIR`. Names are matched without regard to case; when two mods replace the same file, the one whose folder name sorts last wins; folders starting with `_` are skipped (a quick way to disable one). Every replaced file is listed in `logs\\run.log` as `[mods]` lines. Single members of a `.psarc` archive and single level assets (by tuid) can be replaced too: see [docs\u002FMODDING.md](docs\u002FMODDING.md).\n- **Ultrawide:** not available yet. Resistance 2's port widens the 3D view on 21:9 \u002F 32:9 screens by hooking the game's camera-frustum setters; the matching functions in Resistance 3 could not be identified with certainty, so wider screens show the 16:9 picture with side bars.\n- These window features (F10, F3, F12, pause on focus loss, monitor choice) work with both renderers. The port's menus, overlay and notifications are drawn into the game's own image (`PORT_OSD`, default), so they also show in exclusive fullscreen; `PORT_OSD=layered` uses the old separate windows, which exclusive fullscreen hides. Exclusive fullscreen can still give black screenshots; borderless is recommended.\n\n### PC extras\n\nAll of these are in the launcher (on the Display, Graphics, Upscaling & Frame Gen, Controls, Interface & Notifications and Advanced pages, see *All launcher options*, and the **Saves & tools** page) and most also in game: **F9**, or **F10 › More PC Options**. The in-game page writes the same `settings.ini` \u002F `settings.bat` lines as the launcher. Rows marked *(next start)* apply after a restart; the rest apply at once. Code: `project\\r3_pcextra.cpp` (game side), `project\\launcher_extra.inc` (launcher), `ps3recomp\\third_party\\rpcs3\\rpcs3\\Emu\\RSX\\VK\\VKR2PcExtras.cpp` (Vulkan HDR \u002F colour-blind \u002F Reflex). New switches use the `R3_` prefix.\n\n- **Skip intro movies** — `SKIP_INTRO` (above, default on). The epilepsy \u002F legal notice is a game screen that waits for a button and is not skipped (the code that sequences it was not located).\n- **Key rebinding** — keyboard and mouse: launcher Controls page or in game *More PC Options › Key bindings* (Enter = press the new key, Esc = cancel; written to `controls.txt` and re-read at once). Controller: launcher *Controller buttons* or in game *More PC Options › Controller layout* — each Xbox button can act as another one (`PAD_MAP_\u003Cbutton>=\u003Cbutton>`, e.g. `PAD_MAP_A=B`), `PAD_SOUTHPAW=1` swaps the sticks. The remap is applied to the XInput state before the game sees it.\n- **Automatic prompts** — `R2_PAD_GLYPHS=auto` (default): the prompts follow the last device used. Already in the port; listed for completeness.\n- **Post-effect toggles** — `R3_FX_FILMGRAIN`, `R3_FX_DOF`, `R3_FX_MOTIONBLUR` (default `1` = the game's own look; `0` = off). Also in game (*More PC Options*, F9) and in the launcher; the in-game switch applies at once. Each frame the engine blends its post volumes and Lua `pfx_*` nodes into a per-view post block (0x12B3E80 + view × 0x230) and then calls one function per effect with a parameter struct. Each function returns early when its strength is zero, so the hooks in `tools\u002Fhooks\u002Fr3.json` zero only that strength before the function reads it, and the game takes its own \"effect off\" path:\n\n  | Effect | Function | Field zeroed | Skip test in the game |\n  |---|---|---|---|\n  | Film grain | `func_00744A18` | p+0x08, grain intensity (block 0xEC) | ≤ 0 |\n  | Camera motion blur | `func_007424F8` | p+0x14 (block 0xD8) | ≤ 0 |\n  | Object (per-moby) motion blur | `func_00855A98` | p+0x0C, sample scale | \u003C 0.01 |\n  | Depth of field | `func_008557A8` | p+0x28 \u002F p+0x38, near \u002F far max blur (block 0xC4 \u002F 0xD0) | both \u003C 0.01 |\n\n  Only the stack copy is changed, so turning an effect back on restores the level's exact values. The Lua `pfx_set_node_*` natives (registered at 0x8EA7E0 through `lis`\u002F`addic` pairs, which is why a plain pointer search finds no references) feed the same block, so script-driven effects are covered too.\n- **Colour-blind filter** — `R3_COLORBLIND=1|2|3` (protanopia \u002F deuteranopia \u002F tritanopia): daltonization in the final output pass (Compatible renderer). Applies at once.\n- **Extra crosshair** — `R3_CROSSHAIR=dot|cross`: a small marker at the window centre during play (hidden in menus, the PC menu and photo mode).\n- **Window** — `RSX_RESIZABLE` (default on): the windowed-mode window has a sizing border and the swapchain follows the new size. `RSX_ALT_ENTER` (default on): Alt+Enter switches windowed ↔ borderless fullscreen.\n- **Frame rate** — the cap is the port's frame limiter (`R2_FPS`, launcher *Frame rate*); there is only one limiter. Above 60 fps the game clock follows real time through the ported Unlock-FPS hooks (frame-time floor and game-clock clamp, see *RPCS3 patches*), so the game does not speed up; frame-counted logic was not audited frame by frame (as UnleashedRecomp did for its game), so treat 120 \u002F 144 \u002F Uncapped as less tested than 60.\n- **NVIDIA Reflex** — `R3_REFLEX=1` (`2` = + Boost), opt-in, Compatible renderer, GeForce with `VK_NV_low_latency2`: low-latency mode plus the Reflex sleep at the start of each frame. It does not cap the frame rate; no latency markers are sent. Does nothing when the extension is missing.\n- **DLSS Frame Generation** — `R3_DLSS_FG=2|3|4` (launcher: Upscaling & Frame Gen › *Frame Generation*; `0`\u002Funset = Off), Compatible renderer, GeForce RTX 40 (2x) or RTX 50 (up to 4x Multi Frame Generation), Anti-aliasing = NVIDIA DLSS, setup's optional NVIDIA Streamline download. The GPU inserts 1-3 generated frames between the game's own (`ps3recomp\\third_party\\rpcs3\\rpcs3\\Emu\\RSX\\VK\\VKR2FrameGen.cpp`, NVIDIA Streamline 2.14.16, manual hooking). Smoother motion when the CPU is the limit; adds a little input lag, so Reflex is switched on with it (Streamline drives Reflex while FG is set up; `R3_REFLEX=2` = Boost). The frame-rate setting caps the game's own frames; the Reflex cap keeps rendered × multiplier under the refresh rate. The HUD is split from the scene in the renderer (HUD draws after the 3D pass go to a UI layer that is composited after generation), so HUD text does not warp; when a frame's HUD can't be separated cleanly it is passed through untouched. FG pauses in menus, movies, loading screens, split-screen, while the game is paused and on scRGB HDR, and turns itself off (one `[fg-vk] frame generation off: ...` log line) on other GPUs, without the DLLs, or with FSR \u002F XeSS \u002F no AA. Debug: `R3_DLSS_FG_HUD=0` (no HUD split), `R3_DLSS_FG_HUD_DEBUG=1` (show the HUD-less image), `R3_DLSS_FG_MENU_OFF=0`, `R3_DLSS_FG_CAP=0`, `R3_DLSS_FG_YFLIP=0`, `R3_DLSS_FG_DEBUG=1`. With a fixed-refresh display and no G-Sync, vsync is replaced by the Reflex cap and may tear.\n- **FSR 3 Frame Generation (fallback)** — `R3_DLSS_FG=fsr3` (launcher: *Frame Generation* › *FSR 3 2x*, listed on GPUs that are not RTX 40\u002F50), or `R3_FG_BACKEND=auto|dlss|fsr3` (auto = default: DLSS-G first, then FSR 3 2x when DLSS-G is unavailable; `dlss` = DLSS-G only; `fsr3` = FSR 3 only, also on RTX cards). AMD FidelityFX frame interpolation (FidelityFX API 1.1.4, `tools\\ffx_vk\\amd_fidelityfx_vk.dll`, MIT, shipped with the port) on any Vulkan GPU with a spare present-capable queue and timeline semaphores; 2x only. Needs Anti-aliasing = FSR, DLSS or XeSS (for depth and motion vectors) and SDR or HDR10 output. Uses the same inputs, HUD split (the HUD-less scene goes to interpolation, the HUD layer is composited on every shown frame), camera-cut resets and pause rules as DLSS-G. No Reflex while it is selected (FidelityFX's swapchain has no low-latency mode), so it adds a little more input lag than DLSS-G; the game's frame cap still applies to its own frames and FSR 3 paces the generated ones. Turning it on or off mid-game waits for the GPU once (a short hitch). HDR10 works on the usual A2B10G10R10 swapchain; a driver that only offers A2R10G10B10 for HDR10, and scRGB HDR, keep FG paused. Debug: `R3_DLSS_FG_DEBUG=2` (FidelityFX tear lines and reset markers); the HUD switches above apply too. Off reasons are logged as `[fg-vk] ...` lines.\n- **HDR output** — `R3_HDR=1` (HDR10 \u002F PQ) or `R3_HDR=scrgb` (FP16 linear), opt-in, Compatible renderer, Windows HDR must be on. The final pass converts the SDR image to linear and scales SDR white to `R3_HDR_PAPER` nits (default 200), then encodes PQ or scRGB; `R3_HDR_PEAK` (default 1000) is sent as `VK_EXT_hdr_metadata` and caps highlights. Falls back to SDR when the display\u002Fdriver has no HDR surface format (logged). The F3 overlay, PC menu and screenshots stay SDR.\n- **Hold to skip movies** — `R3_CUTSCENE_SKIP` (default on): hold Space \u002F Enter \u002F A \u002F Menu for 1 s while a pre-rendered movie plays and the port presses the game's own skip button. Loading-screen movies and in-engine cutscenes are not skipped (not safe). The *Hold Space \u002F A to skip* notification shown when a movie starts can be hidden with launcher *Show cutscene skip hint: Off* (`PORT_SKIP_HINT=0`, or `R3_SKIP_HINT=0`); holding still skips.\n- **Subtitles** — not available: they are drawn by the game's Scaleform movies at a fixed size.\n- **Discord Rich Presence** — `R3_DISCORD=1`, opt-in. Talks to the local Discord app over `\\\\.\\pipe\\discord-ipc-0..9` (no SDK): *Resistance 3* plus the current level (from the level folder the game opens; menus and lobby show *In the menus*). Needs an application id from discord.com\u002Fdevelopers in `discord_appid.txt` in the game folder or `R3_DISCORD_APPID`. Silent when Discord isn't running (retries every minute).\n- **Photo mode** — `R3_PHOTO` (default on): **F7** pauses the game and hides the port's overlays; **F12** takes the screenshot; F7 again resumes. No free camera and no separate HUD hide (the camera and HUD are not hooked).\n- **Pause when the controller disconnects** — `R3_PAD_DISCONNECT_PAUSE` (default on): the game pauses with a message until the controller is back or Enter is pressed.\n- **Benchmark** — launcher *Saves & tools › Run benchmark* (or `R3_BENCH=1`): a fixed input script from start-up into the campaign (`R3_BENCH_SCRIPT`, the `scratch\\r3bench.ps1` route), measures `R3_BENCH_SECONDS` (default 60) and quits (`R3_BENCH_QUIT=0` keeps it running). Writes `logs\\bench\\R3_bench_\u003Cdate>.txt` (average, 1 % and 0.1 % low fps, frame-time percentiles, draws per frame, µs per draw) and appends `logs\\bench\\bench_history.csv`. The button also sets `R2_BACKGROUND=run` for the run.\n- **Save manager** — launcher **Saves & tools**: lists the saves (title, date, size), *Back up now*, per-backup *Restore* (current saves are backed up first) and *Delete*, and *Open* buttons. `R3_SAVE_BACKUP` (default on, newest 10 automatic backups kept): Play copies the save folder to `save_backups\\\u003Cdate>_auto` when it changed since the newest backup.\n\n**How to check them in game:** F9 opens *More PC Options*; the colour-blind filter changes colours at once; F7 = photo mode; unplug the controller during play = pause message; hold Space during a movie = skip; drag the window edge in windowed mode; Alt+Enter; `logs\\run.log` lines start with `[r3x]`.\n\n## Launcher\n\n`Launcher.exe` has its own icon and artwork (original, drawn by `tools\\art\\make_r3_art.py`; nothing from the game). It writes your choices to `settings.ini` (its own) and `settings.bat` (`set \"NAME=value\"` lines that `run.bat` loads before starting the game), and the key bindings to `controls.txt`.\n\n**Recommended for this PC \u002F Auto-detect.** On first start the launcher detects your GPU (name, video memory, RTX or not, integrated or not), CPU cores\u002Fthreads, RAM and screen (resolution and refresh rate), and shows a *Recommended* panel with a Low \u002F Medium \u002F High \u002F Ultra tier and the settings it would use. **Auto-detect** applies them (display and graphics only). The same table is used by the game when `R2_PRESET=auto|low|medium|high|ultra` is set: it fills in every setting you did not set yourself. GPUs with DLSS get DLSS, others FSR 3.1 (or FSR 1 scaling on weak integrated GPUs). From a command prompt, `Launcher.exe --detect` prints what it found and the `settings.bat` it would write, and `Launcher.exe --table` prints the recommendation for a list of typical PCs (`--sim-gpu \"\u003Cname>\" --sim-vram \u003CGB> --sim-cores \u003Cn> --sim-threads \u003Cn> --sim-ram \u003CGB> --sim-screen \u003Cw>x\u003Ch>@\u003Chz>` simulate other hardware).\n\n**1080p rendered, DLSS output at 4K (supersampled on a 1080p screen):** Render resolution **3840 x 2160**, Anti-aliasing **NVIDIA DLSS**, Upscaling **Performance (50%)**, i.e. `RSX_RES_SCALE=3`, `RSX_FSR=2`, `RSX_UPSCALE=0.5`. The 3D scene is drawn at 1920x1080 and DLSS reconstructs 3840x2160, which is then scaled to your screen. This is the launcher's default. If DLSS isn't available (not an RTX card, or the DLSS runtime is missing) the port uses AMD FSR 3.1 instead, and if FSR 3.1 can't start either, FSR 1 spatial upscaling.\n\n### All launcher options\n\nThe options are sorted into pages, each with group headings (the same pages as the Resistance: Fall of Man launcher). `Launcher.exe --page N` opens on page N: 0 Display, 1 Graphics, 2 Upscaling & Frame Gen, 3 Performance, 4 Controls, 5 Audio, 6 Interface & Notifications, 7 Advanced, 8 Trophies, 9 Saves & tools, 10 About. The Display, Graphics and Upscaling & Frame Gen pages start with the *Recommended for this PC* panel; **Rebuild shader cache** is on the Performance page. Any option no group lists would appear on the Advanced page under *Other*.\n\n| Page | Option | Values (default first or marked) | Environment variable |\n|---|---|---|---|\n| Display › Screen | Display mode | Borderless, Exclusive fullscreen, Windowed | `RSX_DISPLAY` |\n| Display › Screen | Window size | 1280x720 … 3840x2160 (**1920x1080**) | `RSX_WINDOW` |\n| Display › Frame rate | Frame rate | 30, **60**, 120, 144, Match display, Just under refresh (G-Sync \u002F FreeSync), Uncapped | `R2_FPS` (`30`, `\u003Cfps>`, `refresh`, `vrr`, `0`) |\n| Display › Frame rate | VSync | **Off**, On, Adaptive (FIFO relaxed), Auto (On when capped at or under the refresh) | `RSX_VSYNC` |\n| Display › Screen | Monitor | **Primary**, Monitor 1…n | `RSX_MONITOR` |\n| Display › Frame rate | Frame rate in menus | **Same as in game**, 60 fps, 30 fps | `PORT_MENU_FPS` |\n| Display › Frame rate | Presentation mode (Compatible renderer) | **Default (follow VSync)**, Immediate (VRR \u002F tearing), Mailbox, FIFO | `R2_PRESENT` (`immediate` \u002F `mailbox` \u002F `fifo`) |\n| Display › Frame rate | Refresh rate switch (exclusive fullscreen) | **Off**, On | `PORT_REFRESH_SWITCH` (`1` = on, experimental) |\n| Display › Screen | Resizable window | **On**, Off | `RSX_RESIZABLE` (`0` = off) |\n| Display › Screen | Alt+Enter | **On**, Off | `RSX_ALT_ENTER` (`0` = off) |\n| Display › HDR | HDR output (experimental) | **Off**, HDR10, scRGB | `R3_HDR` (`1` \u002F `scrgb`) |\n| Display › HDR | HDR paper white \u002F peak brightness | **200** nits … \u002F **1000** nits … | `R3_HDR_PAPER`, `R3_HDR_PEAK` |\n| Graphics › Resolution | Render resolution | 720p (PS3) … **3840x2160** | `RSX_RES_SCALE` (1, 1.5, 2, 2.5, **3**) |\n| Graphics › Quality | Texture filtering | **Trilinear**, Anisotropic 2x\u002F4x\u002F8x\u002F16x | `RSX_ANISO` |\n| Graphics › Resolution | Scaling (to the screen) | **Smooth**, Sharp pixels, AMD FSR 1 | `RSX_FILTER` (`linear` \u002F `point` \u002F `fsr`) |\n| Graphics › Renderer | Renderer | **Compatible (RPCS3)**, Native Vulkan (experimental) | `R2_RSX` (`rpcs3` \u002F `vulkan`) |\n| Graphics › View | Field of view (experimental) | **Original**, Wider (0.85), Widest (0.7) | `R2_PATCH_FOV_VALUE` |\n| Graphics › Quality | Shadow resolution | **Original**, 2x, 4x | `RSX_SHADOW_SCALE` (`2` \u002F `4`) |\n| Graphics › Quality | Effects resolution | **Original**, Full, Full (all) | `RSX_FX_FULLRES` (`1` \u002F `2`) |\n| Graphics › Quality | Ambient occlusion | **Off**, On (experimental) | `RSX_SSAO`. Ambient occlusion is disabled with DLSS in this beta (`RSX_SSAO_DLSS=1` forces it on). |\n| Graphics › Effects and accessibility | Film grain | **On**, Off | `R3_FX_FILMGRAIN` (`0` = off) |\n| Graphics › Effects and accessibility | Depth of field | **On**, Off | `R3_FX_DOF` (`0` = off) |\n| Graphics › Effects and accessibility | Motion blur | **On**, Off | `R3_FX_MOTIONBLUR` (`0` = off) |\n| Graphics › Effects and accessibility | Colour-blind filter | **Off**, Protanopia, Deuteranopia, Tritanopia | `R3_COLORBLIND` (`1` \u002F `2` \u002F `3`) |\n| Upscaling & Frame Gen › Anti-aliasing and upscaling | Anti-aliasing | Off, AMD FSR 3.1, **NVIDIA DLSS** | `RSX_FSR` (0 \u002F 1 \u002F **2**) |\n| Upscaling & Frame Gen › Anti-aliasing and upscaling | Upscaling | Native (DLAA), Quality 67%, Balanced 58%, **Performance 50%** | `RSX_UPSCALE` (1, 0.667, 0.58, **0.5**) |\n| Upscaling & Frame Gen › Anti-aliasing and upscaling | Sharpening | Off, **Low**, Medium, High | `RSX_SHARPEN` (0 \u002F 0.25 \u002F 0.5 \u002F 0.8) |\n| Upscaling & Frame Gen › Frame generation and latency | NVIDIA Reflex (experimental) | **Off**, On, On + Boost | `R3_REFLEX` (`1` \u002F `2`) |\n| Upscaling & Frame Gen › Frame generation and latency | Frame Generation (RTX 40\u002F50: DLSS-G, needs NVIDIA DLSS; other GPUs: FSR 3 2x) | **Off**, 2x, 3x, 4x, FSR 3 2x (only what the GPU supports) | `R3_DLSS_FG` (`2`\u002F`3`\u002F`4`\u002F`fsr3`), `R3_FG_BACKEND` |\n| Performance › Processor | CPU profile | **Auto**, Low (4 cores), Mid (6 cores), High (8+) | `PORT_CPU_PROFILE` |\n| Performance › Shader cache | Shader compilation | **Asynchronous**, Asynchronous + interpreter, Synchronous | `R2_SHADER_MODE` (`async` \u002F `interp` \u002F `sync`) |\n| Controls › Controller | Controller button prompts | **Auto**, Xbox, PlayStation, Keyboard keys | `R2_PAD_GLYPHS` (`xbox` \u002F `ps` \u002F `keys`) |\n| Controls | Keys (two per action), Mouse sensitivity, Invert vertical look, Mouse aiming (Direct \u002F Classic), Free the mouse cursor key (F8) | | `controls.txt` |\n| Controls › Aiming and sticks | Vertical mouse sensitivity, Aiming sensitivity, Aim mode, Stick deadzone, Stick response curve | see *Controls* above | `PAD_MOUSE_SENS_Y`, `R2_ADS_SENS`, `PAD_AIM_TOGGLE`, `PAD_DEADZONE`, `PAD_CURVE` |\n| Controls › Controller, Gyro | Controller support, Gyro aiming, Gyro sensitivity, Gyro vertical, Gyro turning axis, Gyro calibration, Light bar, Nintendo button layout | see *Controllers (SDL3)* under Controls | `PAD_BACKEND`, `PAD_GYRO`, `PAD_GYRO_SENS`, `PAD_GYRO_INVERT_Y`, `PAD_GYRO_SPACE`, `PAD_GYRO_CALIBRATE`, `PAD_LIGHTBAR`, `PAD_NINTENDO_SWAP` |\n| Controls › Aiming and sticks | Extra crosshair | **Off**, Dot, Cross | `R3_CROSSHAIR` (`dot` \u002F `cross`) |\n| Controls › Controller | Pause when the controller disconnects | **On**, Off | `R3_PAD_DISCONNECT_PAUSE` (`0` = off) |\n| Controls › Controller, Controller buttons | Swap sticks (southpaw), Button A … Right stick click | **Off** \u002F **same button** | `PAD_SOUTHPAW`, `PAD_MAP_\u003Cbutton>=\u003Cbutton>` |\n| Audio › In the background | When the game is in the background | **Pause and mute**, Mute only, Keep running | `R2_BACKGROUND` |\n| Audio › Sound | Speaker layout | **5.1 surround**, 7.1 surround, Stereo | `PORT_SPEAKERS` (`8` \u002F `2`) |\n| Audio › Sound | Audio buffer | **Auto** (100 ms; 150 ms under 12 CPU threads), 80, 100, 150, 200 ms | `PORT_AUDIO_BUFFER_MS` |\n| Interface & Notifications › Overlays | Performance overlay | **Off (F3 shows it)**, On at start, Disabled | `R2_OVERLAY` (unset \u002F `1` \u002F `0`) |\n| Interface & Notifications › Notifications | Trophy notifications | **On**, Off | `R2_TROPHY_TOAST` (`0` = off) |\n| Interface & Notifications › Photo mode and Discord | Discord Rich Presence | **Off**, On | `R3_DISCORD` (`1`), `R3_DISCORD_APPID` |\n| Interface & Notifications › Photo mode and Discord | Photo mode (F7) | **On**, Off | `R3_PHOTO` (`0` = off) |\n| Interface & Notifications › Movies | Hold to skip movies | **On**, Off | `R3_CUTSCENE_SKIP` (`0` = off) |\n| Interface & Notifications › Movies | Show cutscene skip hint | **On**, Off | `PORT_SKIP_HINT` (`0` = off; `R3_SKIP_HINT` also read) |\n| Advanced › Start-up | Skip intro movies | **On**, Off | `SKIP_INTRO` |\n| Advanced › Mods and textures | Mods folder | **Off**, On | `R2_MODS` (`1` \u002F `\u003Cfolder>`) |\n| Advanced › Mods and textures | Texture pack \u002F Dump textures | **Off**, On | `RSX_TEXPACK`, `RSX_TEXDUMP` (`1` \u002F `\u003Cfolder>`) |\n| Advanced › Saves | Back up saves before playing | **On (keep 10)**, keep 5, keep 30, Off | `R3_SAVE_BACKUP` (`5` \u002F `30` \u002F `0`) |\n| Trophies | Progress summary (earned \u002F total, %, per grade), every trophy with its icon, grade and unlock date | | read-only: `TROPHY.TRP`, `gamedata\\trophies\\NPWR01841.json`, `Saved Games\\Resistance 3\\trophies.json` |\n| Saves & tools | Saved games, backups (Back up now \u002F Restore \u002F Delete \u002F Open), Run benchmark | | `R3_BENCH`, `R3_BENCH_SECONDS`, `R3_BENCH_SCRIPT`, `R3_BENCH_QUIT` |\n| About | Open save folder, Open screenshots, Open logs folder, Reset all to defaults | | |\n\nWith `R2_PRESET`, any setting you set yourself (in `settings.bat` or the environment) wins over the preset.\n\n## Graphics options\n\n- **Renderer:** the default is the *Compatible* renderer: the game's RSX (PS3 GPU) command stream is fed to RPCS3's RSX core and Vulkan renderer, built into the game as a library (`R2_RSX=rpcs3`). It uses RPCS3's settings from `rpcs3_config.yml` (next to the game, or `R2_RSX_CONFIG=\u003Cfile>`), with the port's settings on top. *Native Vulkan* (`R2_RSX=vulkan`) is the port's own experimental renderer.\n**Frame pacing, VSync and G-Sync \u002F FreeSync** (Compatible renderer)\n\n- Present mode per setting (the log prints it once: `[display] Vulkan present mode FIFO, 3840 x 2160`): VSync *Off* \u002F `R2_PRESENT=immediate` = IMMEDIATE; *On* \u002F `fifo` = FIFO; *Adaptive* = FIFO relaxed (MAILBOX if the driver has no FIFO relaxed); `R2_PRESENT=mailbox` = MAILBOX. *Auto* (`RSX_VSYNC=auto`) = FIFO whenever the frame rate is capped at or under the display refresh (the cap means it never waits on vblank) and Adaptive when uncapped or above the refresh.\n- G-Sync \u002F FreeSync follow FIFO, FIFO relaxed and IMMEDIATE. MAILBOX shows the newest frame at the fixed refresh, so VRR does not follow it: 60 fps on a 144 Hz screen then holds frames for 2, then 3 refreshes (judder) even with G-Sync on. Earlier builds mapped *Auto* and *Adaptive* to MAILBOX; they now use FIFO \u002F FIFO relaxed.\n- Without VRR, a fixed-refresh display is only even at a divisor of its rate (60 on 60 \u002F 120 \u002F 240 Hz, 72 or 48 on 144 Hz); the log warns (`[fps] note: ...`). **Refresh rate switch** — `PORT_REFRESH_SWITCH` (default off, `1` = on, experimental: every switch blanks the screen and can glitch audio; launcher *Display › Frame rate › Refresh rate switch*): in exclusive fullscreen (`RSX_DISPLAY=exclusive`) the display is switched to the nearest mode at the same resolution whose refresh is a multiple of the frame rate (`[fps] display switched 144->120 Hz`), and back to the desktop rate when the game loses focus, is minimised, leaves fullscreen, closes or crashes. Borderless and windowed never switch (use G-Sync \u002F FreeSync or an even frame rate there). With VRR the switch is harmless but unnecessary; `0` avoids the mode-change flash.\n- Popup windows over the game (performance overlay, extra crosshair, toasts) make Windows compose the screen, which can turn G-Sync off while they are visible.\n\n**Hitch logger** — `PORT_HITCH_LOG` (default on, `0` = off; `PORT_HITCH_MS=\u003Cms>`, default 25): every game frame over 25 ms (or over 2x the frame-time target) prints one `[hitch]` line with where that frame went (game, limiter, sync waits, pad, RSX flip interval, present \u002F acquire \u002F GPU wait \u002F DLSS, pipeline compiles, texture uploads, audio wait, and `present-iv` = the longest present-to-present interval). Every 5 s: `[hitch] 5 s:` (CPU frame time p50 \u002F p99 \u002F max) and `[hitch] present 5 s:` (present-to-present interval p50 \u002F p99 \u002F max, `uneven` = intervals more than 4 ms off the median, and how many frames a fixed-refresh display would hold for 1 \u002F 2 \u002F 3 \u002F 4+ refreshes; a mix of 2 and 3 = judder unless VRR is active). Since this build the `[hitch]` line also splits `guestwait` (the game thread's own guest waits) into spin \u002F sleep \u002F lwmutex \u002F lwcond and names the guest call site that waited longest (`top 0x... X ms`), shows the game thread's CPU time (`game X (cpu Y)`: a gap = the thread was preempted), and breaks down the RSX thread: `fifo-idle` (waiting for commands), `label ms\u002Fn` (NV406E semaphore waits), `zcull ms\u002Fn` (occlusion report reads waiting for the GPU), `hard-sync ms\u002Fn`, `submits n` and `rsx-limit` (RPCS3 flip limiter sleep). Hot-thread log lines (`[pipe]`, `[fps]`, `[hitch]`) are queued to a writer thread (`PORT_LOG_SYNC=1` writes them at once).\n\n**Frame pacing** — one pacer: when the frame rate is not 30, the game limiter (`R2_FPS`) paces the frame loop and the RPCS3 flip limiter is off (it was a second 60 Hz clock: the RSX thread slept in the flip while the game waited on it, then the next frame ran at once). `GCM_FRAME_LIMIT=vblank` restores the old double pacing.\n\n**Game clock smoothing** — `PORT_DT_SMOOTH` (default on, `0` = off): above 30 fps the game clock steps by the mean of the last 8 frame times instead of each raw frame time, so an uneven pair of frames (e.g. 1 ms + 32 ms) on an even display no longer makes objects jerk; the total game time is unchanged.\n- **Frame rate:** 60 fps by default (the game was 30 fps on PS3). The game's own frame limiter is replaced by a precise PC-side one (high-resolution timer plus a short spin), the same idea as RPCS3's \"Unlock FPS\" patch, and RPCS3's vblank follows the chosen rate. The game clock's 1\u002F75 s minimum step is lowered too, so 120\u002F144 fps and Uncapped run at the right speed; cutscenes that use a fixed step per frame are kept at real-time speed. 30 fps uses the game's original limiter. *Just under refresh* (`R2_FPS=vrr`) caps a little below the display's refresh rate (e.g. 138 fps at 144 Hz) so a G-Sync \u002F FreeSync display stays in its variable-refresh range. `R2_PACE=0` uses the older, less precise wait; `R2_PACE_SPIN_US=\u003Cµs>` (default 500) sets how long the limiter spins before a frame.\n- **Display mode:** borderless fullscreen, exclusive fullscreen or windowed, with VSync off \u002F on \u002F adaptive \u002F auto.\n- **Anti-aliasing → NVIDIA DLSS** uses DLSS on GeForce RTX cards and falls back to FSR 3.1, then FSR 1, on other GPUs. The DLSS SDK is downloaded by Setup into `tools\\dlss` (if that fails, the port still builds without it). `RSX_DLSS_PRESET=\u003Cletter>` forces a DLSS model preset.\n- **Upscaling** (with FSR or DLSS on): Native (DLAA), Quality, Balanced or Performance. Menus and HUD stay at full resolution.\n- **Intel XeSS (experimental, Compatible renderer):** XeSS 2 (`rpcs3\u002FEmu\u002FRSX\u002FVK\u002FVKR2XeSS.cpp`, Vulkan `xessVK*` API, Intel's `libxess.dll`; runs on any GPU through DP4a) is hooked into the RPCS3 renderer's upscaler. Pick **Intel XeSS** in the launcher's upscaling option, or set `RSX_FSR=4`. If XeSS can't start, or on the native renderer, FSR 3.1 is used instead. The preset follows the Upscaling ratio (Native → Native AA, Quality → Ultra Quality, Balanced → Quality \u002F Balanced, Performance → Balanced \u002F Performance). `RSX_XESS_QUALITY=aa|uqp|uq|q|b|p|up` asks for a preset, `RSX_XESS_JITTER_SIGN=-1` \u002F `RSX_XESS_JITTER_SIGN_Y=-1` flip the jitter, and `RSX_XESS_LOG=1` logs XeSS's own messages. Setup downloads the XeSS SDK (`tools\u002Fxess\u002F`) after you accept Intel's licence.\n- Resistance 3 renders each frame across the console's buffer flip (a geometry pre-pass, then lighting and a material pass). The upscaler follows that, so DLSS \u002F FSR run on the finished image, not the G-buffer. The upscaler locks onto the scene size once it is stable, so it isn't reset by menus or small passes, and briefly backs off instead of resetting when it can't find the scene for a frame or two.\n- **CPU profile** (Performance page): Auto picks from the cores the game can use (logged as `[cpu]`). Low (≤4 cores) turns off the timing spin-waits, folds the Vulkan submit thread into the render thread and uses fewer shader-compiler threads. Mid (6 cores) shortens the spin-waits. High changes nothing. The port also spreads its main, RSX and FIFO threads over separate cores, keeps them on P-cores on hybrid Intel CPUs and lowers background threads. Advanced: `PORT_CPU_PROFILE=auto|low|mid|high|off` (settings you set yourself always win); `PORT_THREAD_PLACEMENT=0` turns off thread placement; `PS3_PRIO_BOOST=0\u002F1` forces priority boosts off or on; `PORT_MAIN_CPU=\u003Cn>` pins the main thread to CPU n.\n- **Low-end PCs:** use **Auto-detect**. On CPUs with fewer than 8 threads the port stops raising thread priorities and pinning threads to cores, and its busy-wait loops give the CPU to other threads. If a 4-core PC still stutters, use 30 fps.\n\n### Graphics enhancements (Compatible renderer, all off by default)\n\n- **Shadow resolution** (`RSX_SHADOW_SCALE=2|4`): the game's shadow maps (square, depth-only render targets from 256 to 2048 pixels) are rendered at 2x or 4x resolution and sampled at that resolution; the slope-scaled depth bias is scaled to match so no new shadow acne appears. The log says `[r2gx] shadow map target ...` for each one found. Costs GPU time and video memory (4x on a 2048 map is an 8192 map).\n- **Effects resolution** (`RSX_FX_FULLRES=1|2`): render targets at half (`1`) or also quarter (`2`) the scene size (particles, smoke, glow \u002F bloom, blur and depth-of-field buffers) are drawn at the scene's resolution; the game's own upsample and composite passes read them through the renderer's scaling, so they stay aligned.\n- **Ambient occlusion** (`RSX_SSAO=1`, experimental): a screen-space AO pass computed from the scene depth when the scene pass ends, before the game's post-processing. Needs anti-aliasing off or FSR (not `R2_MSAA`); in this beta it is also off whenever NVIDIA DLSS is selected (`RSX_SSAO_DLSS=1` forces it on). `RSX_SSAO_STRENGTH=0..1` (0.6), `RSX_SSAO_RADIUS=0.1..8` (1.0); `RSX_SSAO_DEBUG=1` shows only the AO term.\n- **Texture packs** (`RSX_TEXDUMP=1`, `RSX_TEXPACK=1`): dump writes each texture once to `texdump\\` as `\u003Ckey>_\u003Cw>x\u003Ch>_\u003Cformat>_m\u003Cmips>.dds` (DXT1\u002F3\u002F5, with mips) or `.png` (A8R8G8B8), listed in `texdump\\manifest.tsv`; the key is a content hash of all mip levels plus size, format and mip count (stable across runs, not a memory address); copy edited files into `mods\\textures\\` (sub-folders allowed; the leading 16-digit hash is what matters) and turn on the pack. Replacements must keep the original size (and DXT format for `.dds`). A `\u003Cfolder>` value uses another folder. With both off the upload path costs one `bool` test.\n- Not done for Resistance 3: a shadow-safe FOV mode and longer LOD \u002F draw distance (the camera and LOD setters are not identified in the current recompilation; Resistance 2 has both), the ultrawide HUD fix (`RSX_HUD_FIX` is built in but Resistance 3 has no Hor+ aspect option yet, so it has no effect), and higher-quality motion blur \u002F depth of field beyond what *Effects resolution* gives (they can be turned off: *Post-effect toggles* above).\n\n### Renderer switches (advanced, `settings.bat`)\n\nAll optional; unset = the default shown. Each is logged at start-up in the `[r2rsx] perf:` line.\n\n| Variable | Effect |\n|---|---|\n| `R2_RSX_PROF=1` | Every 5 s, prints a block of `[r2rsx-prof]` lines to the log: CPU time of each RSX thread, the renderer's frame phases, draw and framebuffer-bind time, command-queue flushes (by caller), ZCULL report waits, memory faults that needed a GPU readback, and vertex uploads. It also prints the RSX thread's busy time without DLSS, the time spent outside draws (flushes, flips, ZCULL, blits, labels), deferred ZCULL labels, and program-cache hits (`MRU hits`, `pipeline memo hits`, `re-sent FP kept`, `re-sent VP kept`; `program slow-path loads` counts the full cache lookups that remain). Further lines split the framebuffer-bind locks (discard \u002F orphan \u002F colour \u002F depth, worst and slow rebinds), the texture cache (mutex wait, invalidations, relocks) and Windows `VirtualProtect` calls, the flip (frame-limiter sleep vs present), the program phase (analysis, lookup, constants, and the rest of the program environment: DLSS\u002FFSR draw hook, vertex\u002Ffragment\u002Ftexture env, `bind_uniform`) and the texture cache's blocking GPU readbacks. For finding what limits the frame rate. |\n| `R2_SHADER_THREADS=\u003Cn>` | Background shader-compiler threads (default: what the CPU profile leaves free). |\n| `R2_SHADER_CACHE=0` | Don't keep compiled shaders on disk (`shadercache\\rpcs3`). |\n| `R2_MTRSX=0\u002F1` | RPCS3's multithreaded RSX (guest→host copies on a helper thread). Default: on. |\n| `R2_ASYNC_TEX=0\u002F1` | Asynchronous texture streaming (off by default: it only moves the GPU copy to another queue, the CPU work stays on the render thread, and it stops texture memory reuse; the `r8 per frame` line shows how few textures are uploaded in play). |\n| `R2_HOST_LABELS=0\u002F1` | RPCS3's host label synchronisation. |\n| `R2_WCB=0\u002F1` | Write colour buffers back to memory (needed for some effects; default: the config file's value). |\n| `R2_FBB_KEEP_WCB=1` | Restores RPCS3's original behaviour of writing a render target back when it is re-bound as the same surface (the port skips that redundant copy). |\n| `R2_ZCULL=sync` \u002F `relaxed` \u002F `off` | Occlusion queries. *relaxed* (the default, and RPCS3's recommended setting for Resistance 3) reads only finished results and never makes the renderer wait for the GPU, so visibility can lag one frame. *sync* is strict: every report waits for the GPU (the first bench spent ~8.5 ms per frame on that). *off* reports everything visible. In strict mode, report reads are batched, the wait sleeps on the GPU fence instead of polling, and pending memory-fault flushes are serviced while waiting. |\n| `R2_ZCULL_DEFER=0` | In strict mode, label writes that would wait for pending ZCULL reports are deferred and written once the reports finish (default on; `0` restores the immediate wait). |\n| `R2_ZCULL_FLIP_LAG=\u003Cn>` | **Experimental, may hang (default 0 = off).** In strict ZCULL mode, deferred labels still waiting on the GPU at a flip are carried over up to `n` flips instead of being waited for at every flip; they are also released whenever the RSX command queue runs dry. With `1` the game hung ~30 s into Haven in one bench, so leave it off. |\n| `R2_MM_SKIPSAME=0` | The renderer asks Windows for the current protection first and skips `VirtualProtect` when the pages already have it (default on); `0` always calls it. |\n| `R2_MM_INCR=0` | The RSX helper thread applies queued memory-protection changes one block at a time and lets the RSX thread in between (default on); `0` applies the whole queue in one lock hold. |\n| `R2_FBO_COMMIT_FLUSH=1` | When a new depth or colour target is bound over memory that holds an older target fully inside it, the older one is dropped instead of being read back from the GPU (the new target overwrites those bytes; partly covered ones are still read back). This removed ~5 ms per frame of GPU stalls in Resistance 2. `1` restores RPCS3's readback. |\n| `R2_FBB_KEEP=1` | Test switch, off by default: keeps a depth or colour target bound when the next draw doesn't use it but it is exactly the bound one, saving a framebuffer rebind. A pass that samples that target then reads a copy, which may look different. |\n| `R2_PROG_HINT=0` | The shader-program lookup cache is normally dropped only when the shader code or its inputs change; `0` drops it on every state change, as RPCS3 does. |\n| `R2_FP_REBIND=0` | The game re-sends the same fragment program many times per frame (about 200 times per frame in Haven), which made the renderer treat it as new shader code and look it up again. The port compares the re-sent program with the one in use (skipping the embedded constants) and only refreshes the constants; `0` restores RPCS3's behaviour. |\n| `R2_PIPE_MEMO=0` | When only render state changed and the result is the pipeline used by the previous draw, it is reused without a cache lookup; `0` turns this off. |\n| `R2_VP_REBIND=0` | The same for vertex programs: a vertex program uploaded or selected again with the same code is kept without being analysed and looked up again; `0` restores RPCS3's behaviour. |\n| `R2_PROG_MRU=0` | Turns off the small most-recently-used table that lets the renderer find an already-compiled shader program without hashing its code. |\n| `R2_XFORM_MEMO=0` | Round 8, default on: transform constants unchanged since the last upload for the same vertex program (every constant write is tracked, and the old copy must still be reserved in the upload heap) are not uploaded again. Byte-identical output; `0` uploads them every draw as RPCS3 does. |\n| `R2_IDX_DEDUP=0` | Round 8, default on: an index range identical (compared byte by byte) to one already converted this frame, with the same type and restart settings, reuses the converted copy. `0` converts every draw's indices as RPCS3 does. |\n| `R2_FIFO_MERGE=1` \u002F `\u003Cn>` | Round 8, default off: RPCS3 merges back-to-back draws once a frame has 2,000 draws; `1` lowers that to 400, `\u003Cn>` sets it. |\n| `R2_SHADER_PRELOAD=0` | The start-up preload of every pipeline in the disk cache logs its progress (`[r2rsx] shader preload: ...`); `0` keeps the preload without the log lines. Pipelines first linked during play are logged (`[r2rsx] shader cache miss #n during play`) and preloaded from the next start. |\n| `R2_VK_PIPE_CACHE=0` | Default on: the driver's pipeline cache is saved after the preload and at exit (`shaders_cache\u002Fvk_pipeline_cache.bin`, ignored unless it was written by the same GPU and driver build), so the preload reloads instead of recompiling. `0` = empty driver cache every run (RPCS3 behaviour). |\n| `R2_VK_GPL=0` | Default on when the GPU supports `VK_EXT_graphics_pipeline_library` with fast linking (`[r2rsx] pipeline libraries (R2_VK_GPL): on`): a pipeline first needed during play is linked at once from separately cached parts and the optimised pipeline is compiled in the background and swapped in. Same shaders and state. `0` = the normal path. |\n| `R2_PRELOAD_ASYNC=0` | Default on with the asynchronous shader mode: every cached shader is compiled before the first frame, but only the first `R2_PRELOAD_BOOT` (384) recorded pipelines are linked; `R2_PRELOAD_THREADS` (default CPU threads \u002F 4, 1 to 4) background threads link the rest during play. `0` = everything before the first frame. |\n| `R2_FOSSILIZE=record` | Records every pipeline (with its shaders, layouts and render pass) to `shaders_cache\u002Fr3_pipelines.foz` (Valve Fossilize, sessions append). Default `auto`: that file, if present, is replayed on low-priority threads after the start-up preload, so a new GPU or driver fills its pipeline cache in the background (`[r2foz] replay done: ...`). `0` = off, `R2_FOSSILIZE_DB=\u003Cpath>` = another file. |\n| `R2_PIPE_LOG=0` | Default on: a `[pipe]` line every 5 s with the render thread's waits on shader\u002Fpipeline compilation (ms, >2 ms histogram) and fast-link \u002F background counts. |\n| `R2_RSX_CENSUS=1` | With `R2_RSX_PROF=1`: adds `r9 census` lines (most frequent GPU commands with their same-value share, render-target, depth and texture formats, MRT counts, conditional rendering), used to choose game-specific fast paths. |\n| `R2_PRESENT=immediate` \u002F `mailbox` \u002F `fifo` | Vulkan present mode (overrides `RSX_VSYNC`; launcher *Presentation mode*). `immediate` (or `vrr` \u002F `tearing`) never waits: best with G-Sync \u002F FreeSync and `R2_FPS=vrr`. `mailbox` is not followed by ","这是一个将PS3游戏《Resistance 3》通过静态重编译技术移植到Windows平台的开源项目，不依赖CPU模拟器，而是将原始PowerPC\u002FSPU代码翻译为C\u002FC++并本地编译运行。核心功能包括基于RPCS3 Vulkan渲染器的图形输出、支持NVIDIA DLSS与AMD FSR动态升频、60 FPS稳定帧率、键鼠操作及高分辨率适配。项目需用户自备美版1.00固件的游戏镜像，全程在本地完成解密、翻译与构建，生成的可执行文件不离开用户设备。适用于希望在现代PC上原生运行该PS3独占游戏的技术爱好者，尤其适合具备AVX2指令集CPU和Vulkan 1.3显卡的Windows 10\u002F11环境。","2026-11-24 04:44:01","CREATED_QUERY"]