NieR: Difference between revisions

From RPCS3 Wiki
(Added usleep to default settings)
m (Text replacement - "{{patch |version = 1.2 " to "{{patch |type = PPU |version = 1.2 ")
(45 intermediate revisions by 6 users not shown)
Line 19: Line 19:
<!-- Only enter mandatory non-default settings to be used. Delete parameters which are not applicable -->{{config
<!-- Only enter mandatory non-default settings to be used. Delete parameters which are not applicable -->{{config
<!-- CPU configuration -->
<!-- CPU configuration -->
|ppu decoder                         = <!-- Interpreter (precise), Interpreter (fast), LLVM Recompiler -->
|ppu decoder                           = <!-- Interpreter (precise), Interpreter (fast), Recompiler (LLVM) -->
|ppu decoder notes                   =  
|ppu decoder notes                     =  
|spu decoder                         = <!-- Interpreter (precise), Interpreter (fast), ASMJIT Recompiler, LLVM Recompiler -->
|spu decoder                           = <!-- Interpreter (precise), Interpreter (fast), Recompiler (ASMJIT), Recompiler (LLVM) -->
|spu decoder notes                   =  
|spu decoder notes                     =  
|preferred spu threads               = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
|preferred spu threads                 = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
|preferred spu threads notes         =
|preferred spu threads notes           =  
|firmware settings                  = <!-- Automatically load required libraries, Manually load selected libraries, Load automatic and manual selection, Load liblv2.sprx only -->
|enable thread scheduler               = <!-- On, Off -->
|firmware settings notes            = <!-- Where Manually load selected libraries or Load automatic and manual selection options is selected, mention the list of libraries to be selected in this parameter -->
|enable thread scheduler notes         =  
|enable thread scheduler             = <!-- On, Off -->
|lower spu thread priority             = <!-- On, Off -->
|enable thread scheduler notes       =  
|lower spu thread priority notes       =  
|lower spu thread priority           = <!-- On, Off -->
|enable spu loop detection             = <!-- On, Off -->
|lower spu thread priority notes     =  
|enable spu loop detection notes       =  
|enable spu loop detection           = <!-- On, Off -->
|spu cache                             = <!-- On, Off -->
|enable spu loop detection notes     =  
|spu cache notes                       =  
|spu cache                           = <!-- On, Off -->
|accurate xfloat                       = <!-- On, Off -->
|spu cache notes                     =  
|accurate xfloat notes                 =  
|accurate xfloat                     = <!-- On, Off -->
|spu block size                       = <!-- Safe, Mega, Giga -->
|accurate xfloat notes               =  
|spu block size notes                  =
|spu block size                     = <!-- Safe, Mega, Giga -->
|tsx instructions                      = <!-- Enabled, Disabled, Forced -->
|spu block size notes                =  
|tsx instructions notes                =  
<!-- GPU configuration -->
<!-- GPU configuration -->
|renderer                           = Vulkan <!-- OpenGL, Vulkan -->
|renderer                             = Vulkan <!-- OpenGL, Vulkan, Disabled -->
|renderer notes                     =  
|renderer notes                       = Recommended to get the best performance.
|aspect ratio                       = <!-- Auto, 4:3, 16:9 -->
|aspect ratio                         = <!-- 4:3, 16:9 -->
|aspect ratio notes                 =  
|aspect ratio notes                   =  
|framelimit                         = 30 <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit                           = 30 <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit notes                   = Without framelimiter, audio will de-sync in cutscenes and menu navigation will move too quickly
|framelimit notes                     = Without framelimiter, audio will de-sync in cutscenes and menu navigation will move too quickly. If using the 60 FPS patch, leave this setting at ''Auto''.
|anisotropic filter                 = <!-- Automatic, Disabled, 2x, 4x, 8x, 16x -->
|anisotropic filter                   = Auto <!-- Auto, 2x, 4x, 8x, 16x -->
|anisotropic filter notes           =  
|anisotropic filter notes             = Changing to anything other than ''Auto'' causes graphical issues.
|default resolution                 = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|anti-aliasing                        = <!-- Auto, Disabled -->
|default resolution notes           =  
|anti-aliasing notes                  =  
|resolution scale                   = <!-- Range between 50% to 800% -->
|default resolution                   = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|resolution scale notes             =  
|default resolution notes             =  
|resolution scale threshold         = <!-- Range between 1 to 1024 in the format 16 x 16 -->
|resolution scale                     = <!-- Value between 50% to 800% -->
|resolution scale threshold notes   =  
|resolution scale notes               =  
|write color buffers                 = On <!-- On, Off -->
|resolution scale threshold           = <!-- Value between 1 to 1024 in the format 16 x 16 -->
|write color buffers notes           = Fixes missing in-game visuals
|resolution scale threshold notes     =
|strict rendering mode               = <!-- On, Off -->
|shader mode                          = <!-- Legacy (singlethreaded), Async (multithreaded), Async with Shader Interpreter, Shader Interpreter only -->
|strict rendering mode notes         =  
|shader mode notes                    =  
|vsync                               = <!-- On, Off -->
|write color buffers                   = On <!-- On, Off -->
|vsync notes                         =  
|write color buffers notes             = Fixes missing in-game visuals.
|stretch to display area             = <!-- On, Off -->
|strict rendering mode                 = <!-- On, Off -->
|stretch to display area notes       =  
|strict rendering mode notes           =  
|disable vertex cache               = <!-- On, Off -->
|vsync                                 = <!-- On, Off -->
|disable vertex cache notes         =  
|vsync notes                           =  
|disable async shader compiler      = <!-- On, Off -->
|stretch to display area               = <!-- On, Off -->
|disable async shader compiler notes =  
|stretch to display area notes         =  
|disable vertex cache                 = <!-- On, Off -->
|disable vertex cache notes           =  
|multithreaded rsx                    = <!-- On, Off -->
|multithreaded rsx notes               =  
<!-- Audio configuration -->
<!-- Audio configuration -->
|audio out windows                   = <!-- XAudio2, OpenAL -->
|audio out windows                     = <!-- XAudio2, OpenAL, Disabled -->
|audio out windows notes             =  
|audio out windows notes               =  
|audio out linux                     = <!-- OpenAL, PulseAudio, ALSA -->
|audio out linux                       = <!-- OpenAL, PulseAudio, ALSA, Disabled -->
|audio out linux notes               =  
|audio out linux notes                 =  
|dump to file                       = <!-- On, Off -->
|dump to file                         = <!-- On, Off -->
|dump to file notes                 =  
|dump to file notes                   =  
|convert to 16-bit                   = <!-- On, Off -->
|convert to 16-bit                     = <!-- On, Off -->
|convert to 16-bit notes             =  
|convert to 16-bit notes               =  
|downmix to stereo                   = <!-- On, Off -->
|downmix to stereo                     = <!-- On, Off -->
|downmix to stereo notes             =  
|downmix to stereo notes               =  
|volume                             = <!-- Range between 0% to 200% -->
|volume                               = <!-- Value between 0% to 200% -->
|volume notes                       =  
|volume notes                         =  
|enable buffering                   = <!-- On, Off -->
|enable buffering                     = <!-- On, Off -->
|enable buffering notes             =  
|enable buffering notes               =  
|audio buffer duration               = <!-- Range between 20ms to 250ms -->
|audio buffer duration                 = <!-- Value between 20ms to 250ms -->
|audio buffer duration notes         =  
|audio buffer duration notes           =  
|enable time stretching             = <!-- On, Off -->
|enable time stretching               = <!-- On, Off -->
|enable time stretching notes       =  
|enable time stretching notes         =  
|time stretching threshold           = <!-- Range between 0% to 100% -->
|time stretching threshold             = <!-- Value between 0% to 100% -->
|time stretching threshold notes     =  
|time stretching threshold notes       =
|microphone type                      = <!-- Disabled, Standard, SingStar, Real SingStar, Rocksmith -->
|microphone type notes                =
<!-- I/O configuration -->
|keyboard handler                      = <!-- Null, Basic -->
|keyboard handler notes                =
|mouse handler                        = <!-- Null, Basic -->
|mouse handler notes                  =
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input notes                    =
|camera settings                      = <!-- Null, Fake -->
|camera settings notes                =
|move handler                          = <!-- Null, Fake, Mouse -->
|move handler notes                    =
<!-- Advanced configuration -->
|debug console mode                    = <!-- On, Off -->
|debug console mode notes              =
|accurate llvm dfma                    = <!-- On, Off -->
|accurate llvm dfma notes              =
|silence all logs                      = <!-- On, Off -->
|silence all logs notes                =
|sleep timers accuracy                = <!-- As Host, Usleep Only, All Timers -->
|sleep timers accuracy notes          =
|maximum spurs threads                = <!-- Unlimited, Single digit between 0 to 5 (e.g. 3) -->
|maximum spurs threads notes          =
|firmware settings                    = <!-- Manually load selected libraries, Load automatic and manual selection, Load liblv2.sprx only, Load liblv2.sprx and manual selection, Load liblv2.sprx and strict selection -->
|firmware settings notes              = <!-- Where libraries are manually selected, mention the list of libraries to be selected here -->
|read depth buffers                    = <!-- On, Off -->
|read depth buffers notes              =
|write depth buffers                  = <!-- On, Off -->
|write depth buffers notes            =
|read color buffers                    = <!-- On, Off -->
|read color buffers notes              =
|disable on-disk shader cache          = <!-- On, Off -->
|disable on-disk shader cache notes    =
|relaxed zcull sync                    = <!-- On, Off -->
|relaxed zcull sync notes              =
|driver wake-up delay                  = <!-- Value between 0 to 7000 -->
|driver wake-up delay notes            =
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate notes                    =
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale notes                    =  
<!-- Debug configuration -->
<!-- Debug configuration -->
|force cpu blit emulation           = <!-- On, Off -->
|force cpu blit emulation             = <!-- On, Off -->
|force cpu blit emulation notes     =  
|force cpu blit emulation notes       =  
|use gpu texture scaling             = <!-- On, Off -->
|use gpu texture scaling               = <!-- On, Off -->
|use gpu texture scaling notes       =  
|use gpu texture scaling notes         =  
|accurate getllar                   = <!-- On, Off -->
|accurate getllar                     = <!-- On, Off -->
|accurate getllar notes             =  
|accurate getllar notes               =  
|accurate putlluc                   = <!-- On, Off -->
|accurate putlluc                     = <!-- On, Off -->
|accurate putlluc notes             =  
|accurate putlluc notes               =  
|hook static functions              = <!-- On, Off -->
|accurate rsx reservation access      = <!-- On, Off -->
|hook static functions notes         =  
|accurate rsx reservation access notes =  
|debug console mode                  = <!-- On, Off -->
|hook static functions                = <!-- On, Off -->
|debug console mode notes            =
|hook static functions notes           =  
<!-- Enhancements -->
|sleep timers accuracy              = Usleep <!-- Host, Usleep, All -->
|sleep timers accuracy notes        =
|clocks scale                        = <!-- Range between 10 to 1000 -->
|clocks scale notes                  =
|vblank rate                        = <!-- Range between 1 to 500 -->
|vblank rate notes                   =  
}}
}}


Line 112: Line 151:
<!-- Mention any known issues relating to the game. Use the issue and PR template if necessary. If no notable issues are present, mention "There are no reported issues with this title." -->
<!-- Mention any known issues relating to the game. Use the issue and PR template if necessary. If no notable issues are present, mention "There are no reported issues with this title." -->
There are no reported issues with this title.
There are no reported issues with this title.
=== Vulkan hang during final cutscenes - <i>Fixed</i> ===
<s>After the point-of-no-return at the final dungeon of the game, the game will freeze and crash during the cutscenes when using the Vulkan renderer. In order to bypass this, users are required to either skip the cutscenes or play the final sequence with the OpenGL renderer. This issue is tracked as part of {{issue|6468}} (Warning, contains '''major spoilers''' regarding the final boss battle).</s>


==Special Notes==
==Special Notes==
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
===Japanese text name===
===Japanese text name===
The Japanese version of NieR, Nier Replicant (BLJM60223), requires the character name to be entered in Japanese. However, the on-screen keyboard present in RPCS3's native UI is currently restricted to only English. Therefore, to input a name, users must first disable the native UI and then input any name in Japanese (such as ニーア) through the Qt dialog box.
The Japanese version of NieR, Nier Replicant (BLJM60223), requires the character name to be entered in Japanese. However, the on-screen keyboard present in RPCS3's native UI is currently restricted to only English. Therefore, to input a name, users must first disable the native UI and then input any name in Japanese (such as ニーア) through the Qt dialog box. Note that you'll need to enter the name again at a later point in the game, so do not enable native UI immediately after the first dialog prompt.
 
===Fix Bloom at higher resolutions===
NieR has pixelated bloom at higher resolutions than native, (especially noticeable at +200%).
To work around this, set your "Resolution Scale Threshold" to 512x512. This does cause Depth of Field to become more pixelated.
 
{{patch
|type    = PPU
|version = 1.2
|content =
Anchors:
  NieR_FPS_USEU: &NieR_FPS_USEU
  # "unlock" framerate
    - [ be32, 0x00f7c3b8, 0x386001f5 ] # li r3, 1f5
 
    - [ be32, 0x00711b50, 0x489c3ef1 ] # jump to code cave
 
  # get mftb
    - [ be32, 0x010d5a40, 0x7ccc42e6 ] # mftb r6            // Move from timebase register (clock)
 
  # get mftb delta
    - [ be32, 0x010d5a44, 0x3ca0010e ] # lis r5,0x010e      // load high bits of address (0x010e23c8)
    - [ be32, 0x010d5a48, 0x60a523c8 ] # ori r5,r5,0x23c8    // load low bits of address
    - [ be32, 0x010d5a4c, 0x7c85202a ] # ldx r4,r5,r4        // load previous frames mftb reading
    - [ be32, 0x010d5a50, 0xf8c50000 ] # std r6,0x0(r5)      // store this frames mftb reading
    - [ be32, 0x010d5a54, 0x7cc43050 ] # subf r6,r4,r6      // subtract previous mftb reading from this mftb frames reading
 
  # mftb delta to float
    - [ be32, 0x010d5a58, 0xf8c50080 ] # std r6,0x80(r5)    // store mftb delta (to be loaded into FPR)
    - [ be32, 0x010d5a5c, 0xcba50080 ] # lfd f29,0x80(r5)    // load mftb delta into FPR
    - [ be32, 0x010d5a60, 0xffa0ee9c ] # fcfid f29,f29      // convert integer to double
    - [ be32, 0x010d5a64, 0xffa0e818 ] # frsp f29,f29        // round to single precision
 
  # mftb delta to seconds
    - [ be32, 0x010d5a68, 0x3c80010d ] # r4,0x10d            // load high bits constants pointer
    - [ be32, 0x010d5a6c, 0x60845a40 ] # ori r4,r4,0x5a40    // load low bits of constants pointer
    - [ be32, 0x010d5a70, 0xc384003c ] # lfs f28,0x3c(r4)    // load timebase frequency
    - [ be32, 0x010d5a74, 0xec3de024 ] # fdivs f1,f29,f28    // divide timebase delta by timebase frequency
 
  # return
    - [ be32, 0x010d5a78, 0x4e800020 ] # blr                // return
 
  # constants
    - [ be32, 0x010d5a7c, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
 
  NieR_FPS_JP: &NieR_FPS_JP
  # "unlock" framerate
    - [ be32, 0x00f7cbcc, 0x386001f5 ] # li r3, 1f5
 
    - [ be32, 0x00711d58, 0x489c48e9 ] # jump to code cave
 
  # get mftb
    - [ be32, 0x010d6640, 0x7ccc42e6 ] # mftb r6            // Move from timebase register (clock)
 
  # get mftb delta
    - [ be32, 0x010d6644, 0x3ca0010e ] # lis r5,0x010e      // load high bits of address (0x010e23e8)
    - [ be32, 0x010d6648, 0x60a523e8 ] # ori r5,r5,0x23e8    // load low bits of address
    - [ be32, 0x010d664c, 0x7c85202a ] # ldx r4,r5,r4        // load previous frames mftb reading
    - [ be32, 0x010d6650, 0xf8c50000 ] # std r6,0x0(r5)      // store this frames mftb reading
    - [ be32, 0x010d6654, 0x7cc43050 ] # subf r6,r4,r6      // subtract previous mftb reading from this mftb frames reading
 
  # mftb delta to float
    - [ be32, 0x010d6658, 0xf8c50080 ] # std r6,0x80(r5)    // store mftb delta (to be loaded into FPR)
    - [ be32, 0x010d665c, 0xcba50080 ] # lfd f29,0x80(r5)    // load mftb delta into FPR
    - [ be32, 0x010d6660, 0xffa0ee9c ] # fcfid f29,f29      // convert integer to double
    - [ be32, 0x010d6664, 0xffa0e818 ] # frsp f29,f29        // round to single precision
 
  # mftb delta to seconds
    - [ be32, 0x010d6668, 0x3c80010d ] # r4,0x10d            // load high bits constants pointer
    - [ be32, 0x010d666c, 0x60846640 ] # ori r4,r4,0x6640    // load low bits of constants pointer
    - [ be32, 0x010d6670, 0xc384003c ] # lfs f28,0x3c(r4)    // load timebase frequency
    - [ be32, 0x010d6674, 0xec3de024 ] # fdivs f1,f29,f28    // divide timebase delta by timebase frequency
 
  # return
    - [ be32, 0x010d6678, 0x4e800020 ] # blr                // return
 
  # constants
    - [ be32, 0x010d667c, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)
 
PPU-13950b2e29e05a115fe317815d3da9d2b2baee65:
  Unlock FPS:
    Games:
      "NieR (Nier Replicant)":
        BLUS30481: [ All ]
        BLES00826: [ All ]
    Author: Whatcookie
    Notes: Updated with a new version that has correct game speed at any framerate, you no longer need to set the Framelimiter to 30 or 60.
    Patch Version: 2.1
    Patch:
      - [ load, *NieR_FPS_USEU ]
  21:9 Aspect Ratio:
    Games:
      "NieR (Nier Replicant)":
        BLUS30481: [ All ]
        BLES00826: [ All ]
    Author: dio
    Notes: HUD Elements will be stretched and misplaced. Users need to enable the "Stretch to Display Area" option in RPCS3 for this patch to work.
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x01120398, 2.3703704 ] # HUD elements will look wrong & needs stretch to display area
 
PPU-f098ee8410599c81c89f90d698340a078dc69a90:
  Unlock FPS:
    Games:
      "NieR (Nier Replicant)":
        BLJM60223: [ All ]
    Author: Whatcookie
    Notes: Updated with a new version that has correct game speed at any framerate, you no longer need to set the Framelimiter to 30 or 60.
    Patch Version: 2.1
    Patch:
      - [ load, *NieR_FPS_JP ]
}}

Revision as of 16:02, 9 September 2020

NieR
Developer(s) Cavia
Publisher(s) Square Enix
Series Drakengard
Release date(s) JP/AU April 22, 2010
EU April 23, 2010
NA April 27, 2010
Release type Console exclusive
Genre(s) Action, Role-playing, Hack and slash
Mode(s) Single-player
GameID(s) NieR
BLUS30481 (IRD), BLES00826 (IRD)
NieR RepliCant
BLJM60223
Quick links Check Compatibility
Open Issues
Search Google
Wikipedia Page

NieR is a spin-off from the Drakengard series, and follows the fifth ending of the first game, the events of which have left the planet Earth in a state of decay. Set over one thousand years after this, the game puts the player in control of the titular protagonist Nier, as he attempts to find a cure for an illness, known as the Black Scrawl, to which his daughter Yonah has succumbed. Partnering with a talking book known as Grimoire Weiss, he journeys with two other characters, Kainé and Emil, as he attempts to find a remedy and understand the nature of the creatures known as Shades that stalk the world. The gameplay borrows elements from various video game genres, occasionally switching between them and the main role-playing-based gameplay.

In Japan, the game was released as Nier Gestalt (Japanese: ニーア ゲシュタルト Hepburn: Nīa Geshutaruto) for the Xbox 360, while an alternate version entitled Nier Replicant (Japanese: ニーア レプリカント Hepburn: Nīa Repurikanto) was released for PlayStation 3 with a younger main character. The game was developed to appeal both to older players and to players outside Japan, where the developer was based. The music was composed by Keiichi Okabe, head of Monaca, a music composition studio, and has sparked the release of several albums.

Nier was released to mixed reception; reviewers praised the story, characters and soundtrack and were mixed in their opinions of how well the disparate gameplay elements were connected. The execution of some gameplay elements was criticized, notably the side quests, and especially the graphics (which were regarded as substandard). Despite this, the game acquired acclaim among players over time, becoming a cult classic. A more successful sequel developed by PlatinumGames, titled Nier: Automata, was released in 2017 for PlayStation 4, Microsoft Windows and in 2018 for Xbox One.

Configuration

Options that deviate from RPCS3's default settings and provide the best experience with this title are listed below.

GPU configuration

Setting Option Notes
Renderer Vulkan Recommended to get the best performance.
Framelimit 30 Without framelimiter, audio will de-sync in cutscenes and menu navigation will move too quickly. If using the 60 FPS patch, leave this setting at Auto.
Anisotropic filter Auto Changing to anything other than Auto causes graphical issues.
Write color buffers On Fixes missing in-game visuals.

Known Issues

There are no reported issues with this title.

Vulkan hang during final cutscenes - Fixed

After the point-of-no-return at the final dungeon of the game, the game will freeze and crash during the cutscenes when using the Vulkan renderer. In order to bypass this, users are required to either skip the cutscenes or play the final sequence with the OpenGL renderer. This issue is tracked as part of Issue 6468 (Warning, contains major spoilers regarding the final boss battle).

Special Notes

Japanese text name

The Japanese version of NieR, Nier Replicant (BLJM60223), requires the character name to be entered in Japanese. However, the on-screen keyboard present in RPCS3's native UI is currently restricted to only English. Therefore, to input a name, users must first disable the native UI and then input any name in Japanese (such as ニーア) through the Qt dialog box. Note that you'll need to enter the name again at a later point in the game, so do not enable native UI immediately after the first dialog prompt.

Fix Bloom at higher resolutions

NieR has pixelated bloom at higher resolutions than native, (especially noticeable at +200%). To work around this, set your "Resolution Scale Threshold" to 512x512. This does cause Depth of Field to become more pixelated.

Patches

Anchors:
  NieR_FPS_USEU: &NieR_FPS_USEU
  # "unlock" framerate
    - [ be32, 0x00f7c3b8, 0x386001f5 ] # li r3, 1f5
  
    - [ be32, 0x00711b50, 0x489c3ef1 ] # jump to code cave
  
  # get mftb
    - [ be32, 0x010d5a40, 0x7ccc42e6 ] # mftb r6             // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x010d5a44, 0x3ca0010e ] # lis r5,0x010e       // load high bits of address (0x010e23c8)
    - [ be32, 0x010d5a48, 0x60a523c8 ] # ori r5,r5,0x23c8    // load low bits of address
    - [ be32, 0x010d5a4c, 0x7c85202a ] # ldx r4,r5,r4        // load previous frames mftb reading
    - [ be32, 0x010d5a50, 0xf8c50000 ] # std r6,0x0(r5)      // store this frames mftb reading
    - [ be32, 0x010d5a54, 0x7cc43050 ] # subf r6,r4,r6       // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x010d5a58, 0xf8c50080 ] # std r6,0x80(r5)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x010d5a5c, 0xcba50080 ] # lfd f29,0x80(r5)    // load mftb delta into FPR
    - [ be32, 0x010d5a60, 0xffa0ee9c ] # fcfid f29,f29       // convert integer to double
    - [ be32, 0x010d5a64, 0xffa0e818 ] # frsp f29,f29        // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x010d5a68, 0x3c80010d ] # r4,0x10d            // load high bits constants pointer
    - [ be32, 0x010d5a6c, 0x60845a40 ] # ori r4,r4,0x5a40    // load low bits of constants pointer
    - [ be32, 0x010d5a70, 0xc384003c ] # lfs f28,0x3c(r4)    // load timebase frequency
    - [ be32, 0x010d5a74, 0xec3de024 ] # fdivs f1,f29,f28    // divide timebase delta by timebase frequency
  
  # return
    - [ be32, 0x010d5a78, 0x4e800020 ] # blr                 // return
  
  # constants
    - [ be32, 0x010d5a7c, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)

  NieR_FPS_JP: &NieR_FPS_JP
  # "unlock" framerate
    - [ be32, 0x00f7cbcc, 0x386001f5 ] # li r3, 1f5
  
    - [ be32, 0x00711d58, 0x489c48e9 ] # jump to code cave
  
  # get mftb
    - [ be32, 0x010d6640, 0x7ccc42e6 ] # mftb r6             // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x010d6644, 0x3ca0010e ] # lis r5,0x010e       // load high bits of address (0x010e23e8)
    - [ be32, 0x010d6648, 0x60a523e8 ] # ori r5,r5,0x23e8    // load low bits of address
    - [ be32, 0x010d664c, 0x7c85202a ] # ldx r4,r5,r4        // load previous frames mftb reading
    - [ be32, 0x010d6650, 0xf8c50000 ] # std r6,0x0(r5)      // store this frames mftb reading
    - [ be32, 0x010d6654, 0x7cc43050 ] # subf r6,r4,r6       // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x010d6658, 0xf8c50080 ] # std r6,0x80(r5)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x010d665c, 0xcba50080 ] # lfd f29,0x80(r5)    // load mftb delta into FPR
    - [ be32, 0x010d6660, 0xffa0ee9c ] # fcfid f29,f29       // convert integer to double
    - [ be32, 0x010d6664, 0xffa0e818 ] # frsp f29,f29        // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x010d6668, 0x3c80010d ] # r4,0x10d            // load high bits constants pointer
    - [ be32, 0x010d666c, 0x60846640 ] # ori r4,r4,0x6640    // load low bits of constants pointer
    - [ be32, 0x010d6670, 0xc384003c ] # lfs f28,0x3c(r4)    // load timebase frequency
    - [ be32, 0x010d6674, 0xec3de024 ] # fdivs f1,f29,f28    // divide timebase delta by timebase frequency
  
  # return
    - [ be32, 0x010d6678, 0x4e800020 ] # blr                 // return
  
  # constants
    - [ be32, 0x010d667c, 0x4c989680 ] # timebase frequency as hexfloat (80mhz)

PPU-13950b2e29e05a115fe317815d3da9d2b2baee65:
  Unlock FPS:
    Games:
      "NieR (Nier Replicant)":
        BLUS30481: [ All ]
        BLES00826: [ All ]
    Author: Whatcookie
    Notes: Updated with a new version that has correct game speed at any framerate, you no longer need to set the Framelimiter to 30 or 60.
    Patch Version: 2.1
    Patch:
      - [ load, *NieR_FPS_USEU ]
  21:9 Aspect Ratio:
    Games:
      "NieR (Nier Replicant)":
        BLUS30481: [ All ]
        BLES00826: [ All ]
    Author: dio
    Notes: HUD Elements will be stretched and misplaced. Users need to enable the "Stretch to Display Area" option in RPCS3 for this patch to work.
    Patch Version: 1.0
    Patch:
      - [ bef32, 0x01120398, 2.3703704 ] # HUD elements will look wrong & needs stretch to display area

PPU-f098ee8410599c81c89f90d698340a078dc69a90:
  Unlock FPS:
    Games:
      "NieR (Nier Replicant)":
        BLJM60223: [ All ]
    Author: Whatcookie
    Notes: Updated with a new version that has correct game speed at any framerate, you no longer need to set the Framelimiter to 30 or 60.
    Patch Version: 2.1
    Patch:
      - [ load, *NieR_FPS_JP ]