Skip to content
Proyek

Tentang

An unofficial, full-native PC port for Gravity Rush 2 on Windows, Linux, and macOS

Proyek lainnya

Cara angka ini diukur

343 bintang8 Fork +6 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+6
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Get it on RecompLauncher

GR2port - a genuine native PC port for Gravity Rush 2

No CPU emulation, no GPU emulation, no GPU command translation, no shader recompiler, no reading and/or writing PM4:

GR2port executes the x86-64 instructions in the Gravity Rush 2 game executable natively on PC (for CPUs that don't suppport SSE4a, AVX2, BMI1, F16C, MOVBE, those instructions are patched AOT with equivalent instructions compatible for that CPU by using trampolines - this is NOT CPU emulation since the executable is still x86-64 and is executed natively on your x86-64 CPU on PC, and the overhead is incomparable to a JIT patcher, or completely emulating the PS4 CPU, or recompiling the game executable - the one exception is macOS, which requires statically recompiling the game's x86-64 executable and modules to an arm64 library and a separate native runtime for running that recompiled library without relying on an interpreter. Additionally, only 5 functions out of 37,271 are translated via a JIT).

The game's graphics were completely rewritten for PC via a native Vulkan renderer (the game’s render passes have been rebuilt as its own Vulkan code: glass.cpp, shadows.cpp, contours.cpp, deformers.cpp, enemies.cpp, world.cpp etc.) in src/graphics/gr2port that runs handwritten (src/graphics/gr2port/shaders) GLSL shaders that recreate visuals produced by the original GCN shaders.

To reiterate, the game's render passes are NOT EMULATED OR STATICALLY RECOMPILED IN ANY SHAPE OR FORM - they were completely rewritten. Each frame, GR2port takes the game's scene at the start of its frame graph and draws it on its own render thread, so it never builds or translates per-draw PS4 GPU commands. The 2D screen drawing (menus, HUD, text, movies and photos) is read the same way, from the game's own 2D draw items, and drawn by the same renderer. The CPU overhead of the native renderer was measured as only 0.8ms in frame time.

As a disclaimer, this port does not rewrite the entire source code of the game (just the graphics source code). Since the game's executable already contains x86-64 code, a developmental shortcut was made to natively execute the code in the game's executable directly. It does, however, port the graphics by reverse engineering each graphical pass and rewriting them natively for Vulkan (this is not static recompilation). The original game logic is patched via a runtime memory patcher for PC enhancements and to prevent the game from wasting resources building PS4 GPU Commands (unused by the native renderer). Thus, this project is a fully native runtime that runs Gravity Rush 2 by natively executing original code and porting (rewriting not translating, recompiling AOT/JIT, or running via an abstraction layer) the game's graphics renderer.

All shader pipelines are precompiled at boot and stored on disk so there is no shader stutter during gameplay. A runtime translates the firmware libraries the game calls on the PS4's operating system into native PC operating system solutions (little to no performance overhead like WINE).

ep03_5_12

Screenshot © Sony Interactive Entertainment LLC. Not covered by this project's GPL 2.0 license.

Check out the following playlist if your dump is in .PKG format: https://www.youtube.com/watch?v=O8z6QPOaGDg&list=PLOgHncbXc__M&pp=sAgC

Join the GR2fork discord server (new) here for extended support. Anyone who wants to lurk for general game discussion surrounding gravity rush 1 and 2 are also welcome -> https://discord.gg/hnHRpzxGzG

Support Me Here for more features and projects in the Future: https://ko-fi.com/junminlee2004


20261025_030106_00120261025_031040_00120260705_103536_001

race

Screenshots © Sony Interactive Entertainment LLC. Not covered by this project's GPL 2.0 license.

System Requirements: Generally, a GPU with Vulkan 1.3 support is required. For NVIDIA GPUs, a GPU architecture equivalent to or newer than Maxwell is required. For AMD GPUs, a GPU architecture equivalent to or newer than Polaris is required. For macOS, only Apple silicon devices are supported. The minimum hardware requirements for apple silicon macs are an M1 air base model or a macbook neo.

720p 60 (locked) LOW PRESET 800p 60 (locked) STEAM DECK PRESET 4K 60 (locked) PS4 ORIGINAL PRESET 4K 120 (locked) PS4 ORIGINAL PRESET
CPU intel i5 3470 STEAM DECK Ryzen 5 1600 Ryzen 5 3600
GPU GTX 1050 2 GB STEAM DECK RTX 3060 8 GB RTX 3070 8 GB
RAM 8 GB 16 GB 12 GB 12 GB
Storage HDD SSD HDD HDD

[!NOTE] Upscaling and/or frame generation is NOT considered for these fps targets but may be used to optionally improve fps further. Currently, Windows, Linux, and macOS are supported.

Included Features for Gravity Rush 2

  • Support for 2 GB VRAM GPUs
  • Support for older/weaker GPU architectures with fewer features (Intel iris Xe)
  • Support for Intel CPUs as old as Sandy Bridge (no AVX2, BMI1, F16C, MOVBE)
  • Support for AMD CPUs as old as Bulldozer (no AVX2, BMI1, F16C, MOVBE)
  • Fully game region-agnostic (Asia, Europe, USA, Japan regions all supported); update v1.11 is required.
  • Launcher GUI contains all 31 console region languages, fully navigable via controller input.
  • Native mouse input (controls camera)
  • Fully bindable gamepad and keyboard bindings and button prompts
  • in game sliders for special attack and panther mode controller sensitivity
  • more customizable audio volume sliders
  • photo mode camera roll and tilt support
  • Fully customizable graphics presets
  • graphics settings to hide HUD, gravity meter, and crosshair
  • In-game exit to desktop button below return to title
  • Graphics Settings page in the pause menu's System Menu, with changes applied live where the renderer allows
  • Field of view setting: 80% to 150% of the game's own angle
  • Right stick tilts menus, the title screen and comics when the pad has no gyro (or there is no pad)
  • Trophy list in game (F1, or L3 + R3 on a pad)
  • multiple hotkeys for in game QOL features (see below for details)
  • Verify Game Files under Setup > Paths: reads the four archives in full and compares them with a good dump
  • A dump that differs from the good 1.11 dump is refused at start, and the message names the files. Loose-file dumps (extracted archives) are accepted but not compared
  • Steam Deck preset
  • A fully native renderer built from the ground up pass by pass, delivering impeccable performance, graphical accuracy, and stability
  • 30-360fps supported, with gameplay timing the same at every frame rate
  • 544p-8k resolution supported
  • Ultrawide, 4:3, 3:2, and 16:10 supported
  • HDR support
  • Feature-complete online mode
  • Feature-complete photo mode, photo export, and in-game photo gallery
  • extra photo mode features (Hide UI)
  • All GR2fork patches
  • GR2fork Halloween items
  • FSR 3.1 + FSR 4.1 + DLSS support (Windows + Linux) + XeSS support (Windows Only)
  • FSR 3.1 Frame Generation
  • NVIDIA Reflex Low Latency + AMD Antilag 2 + generic device agnostic low latency mode
  • Keyboard, XBOX, NINTENDO and STEAM (Steam Deck, Steam Controller) button prompts for GR2
  • Auto update checker on launcher startup

image

[!NOTE] You can launch Gravity Rush 2 without the launcher by using the -nolauncher launch option.

Keyboard and Mouse + Controller Mappings

Button Function
F10 FPS Counter (press repeatedly to cycle through off, small, medium, large font size)
Ctrl+F10 Video Debug Info
F12 Screenshot
F11 Fullscreen
F1 Trophy list
F9 Pause game
Keypad +/- Volume up/down
F8 Reload bindings
Ctrl+Shift+End Quit Game

[!NOTE] Xbox and DualShock controllers work out of the box. The trophy list is L3 + R3 on a pad. Keys and buttons can be changed under Setup > Mouse & Keyboard > Key Bindings and Setup > Controller > Button Bindings.

Controls

The mouse turns the camera (native mouse input). Keys can be changed in the launcher under Setup > Mouse & Keyboard > Key Bindings, and controller buttons under Setup > Controller > Button Bindings. There, Hide UI, Open Collection and Open Picture Roll take a combination of two buttons held down together, or a back paddle; they work only while the camera is out, and their prompts show the buttons they are on.

Game Function Controller Keyboard & Mouse
Move Forward Left stick up W
Move Back Left stick down S
Move Left Left stick left A
Move Right Left stick right D
Jump Cross Space
Normal Attack Square Left Mouse Button
Special Attack Triangle F
Stasis Field (Grab) Circle R
Shift Gravity R1 Right Mouse Button
Return Gravity L1 Q
Gravity Slide (Hold) L2 Left Shift
Evade See below E
Lunar Style See below Mouse Wheel Up
Jupiter Style See below Mouse Wheel Down
Normal Style See below Middle Mouse Button
Panther Mode (Hold) Hold the touch pad C
Reset Camera R3 None
Enter Photo Mode D-pad up 1
Display the Map D-pad right 2
Initiate Gesture D-pad down 3
First-person View D-pad left 4
Pause OPTIONS Esc
Zoom In (Photo Mode) R2 None
Hide UI (Photo Mode) L3 + R2 H
Open Collection (Photo Mode) L3 + L1 [
Open Picture Roll (Photo Mode) L3 + R1 ]
Flick Up (Touch Pad) Flick the touch pad up None
Flick Down (Touch Pad) Flick the touch pad down None
Flick Left (Touch Pad) Flick the touch pad left Z
Flick Right (Touch Pad) Flick the touch pad right X

Controller buttons that depend on the control type (Options > Controls)

Each key keeps its function in every type.

Game Function Type A Type B Type C Type D Type E
Evade R2 Flick the touch pad Flick the touch pad Flick the touch pad Flick the touch pad
Lunar Style Flick the touch pad up R2 until Lunar R2 + left stick up R2 + right stick up R2 + triangle
Jupiter Style Flick the touch pad down R2 until Jupiter R2 + left stick down R2 + right stick down R2 + cross
Normal Style Tap the touch pad R2 until Normal R2 R2 R2

Contributing

If you want to contribute, please feel free to do so by reporting issues or submitting pull requests :)

Special Thanks

  • ShadPS4: An open source PS4 emulator written in C++. ShadPS4 along with my fork, GR2fork, provided the basic structure for this codebase, tooling necessary for research and development, and served as reference for this project's native execution of x64 code of PS4 binaries and graphical output.
  • bloodborne-recomp: A static recompiler for Bloodborne. For macOS, the static recompiler was used to read GR2's x86-64 executable and modules and write its functions out as C, which a compiler turns into a native library the game loads.
  • bbcpu: A custom runtime was developed from bbcpu to run the recompiled library natively on macOS without relying on an interpreter (0 interpreted instructions). A few functions that GR2port rewrites while the game runs run through a JIT (only 5 functions out of 37,271).

Jelajahi proyek terkait

Memuat…