Demon's Souls: Difference between revisions

From RPCS3 Wiki
m (Text replacement - "|aspect ratio = <!-- Auto, 4:3, 16:9 --> |aspect ratio notes = " to "|aspect ratio = <!-- 4:3, 16:9 --> |aspect ratio notes = ")
(Added cover art)
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{vginfobox
{{vginfobox
|image    = [[File:DeS PS3.jpg|300px]]
|developer = FromSoftware
|developer = FromSoftware
|publisher = {{vgregion|JP=Sony Computer Entertainment|NA=Atlus USA|AU/EU|Bandai Namco Games}}
|publisher = {{vgregion|JP=Sony Computer Entertainment|NA=Atlus USA|AU/EU|Bandai Namco Games}}
Line 13: Line 14:


==Configuration==
==Configuration==
<!-- Only enter mandatory non-default settings to be used. Delete parameters which are not applicable -->{{config
<!-- Enter mandatory non-default settings to be used. Recommendatory or default settings can be entered only on exceptional basis. -->{{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                  = <!-- 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 -->
|thread scheduler                     = <!-- Operating System, RPCS3 Scheduler, RPCS3 Alternative Scheduler -->
|firmware settings notes            = <!-- Where libraries are manually selected, mention the list of libraries to be selected here -->
|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               =  
|tsx instructions                   = <!-- Enabled, Disabled, Forced -->
|tsx instructions notes             =  
<!-- GPU configuration -->
<!-- GPU configuration -->
|renderer                           = Vulkan <!-- OpenGL, Vulkan -->
|renderer                             = <!-- OpenGL, Vulkan, Disabled -->
|renderer notes                     = Recommended to get the best performance.
|renderer notes                       =  
|aspect ratio                       = <!-- 4:3, 16:9 -->
|aspect ratio                         = <!-- 4:3, 16:9 -->
|aspect ratio notes                 =  
|aspect ratio notes                   =  
|framelimit                         = <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit                           = <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit notes                   =  
|framelimit notes                     =  
|anisotropic filter                 = <!-- Automatic, Disabled, 2x, 4x, 8x, 16x -->
|anisotropic filter                   = <!-- Auto, 2x, 4x, 8x, 16x -->
|anisotropic filter notes           =  
|anisotropic filter notes             =  
|anti-aliasing                       = <!-- Auto, Disabled -->
|anti-aliasing                         = <!-- Auto, Disabled -->
|anti-aliasing notes                 =  
|anti-aliasing notes                   =  
|default resolution                 = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution                   = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution notes           =  
|default resolution notes             =  
|resolution scale                   = <!-- Value between 50% to 800% -->
|resolution scale                     = <!-- Value between 50% to 800% -->
|resolution scale notes             =  
|resolution scale notes               =  
|resolution scale threshold         = <!-- Value between 1 to 1024 in the format 16 x 16 -->
|resolution scale threshold           = 640 x 640<!-- Value between 1 to 1024 in the format 16 x 16 -->
|resolution scale threshold notes   =  
|resolution scale threshold notes     = Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
|write color buffers                 = On <!-- On, Off -->
|shader mode                          = <!-- Legacy (singlethreaded), Async (multithreaded), Async with Shader Interpreter, Shader Interpreter only -->
|write color buffers notes           = Fixes missing graphics ingame.
|shader mode notes                    =  
|strict rendering mode               = <!-- On, Off -->
|write color buffers                   = On <!-- On, Off -->
|strict rendering mode notes         =  
|write color buffers notes             = Fixes missing graphics ingame.
|vsync                               = <!-- On, Off -->
|strict rendering mode                 = <!-- On, Off -->
|vsync notes                         =  
|strict rendering mode notes           =  
|stretch to display area             = <!-- On, Off -->
|vsync                                 = <!-- On, Off -->
|stretch to display area notes       =  
|vsync notes                           =  
|disable vertex cache                = <!-- On, Off -->
|stretch to display area               = <!-- On, Off -->
|disable vertex cache notes         =  
|stretch to display area notes         =  
|multithreaded rsx                  = <!-- On, Off -->
|enable 3d                            = <!-- On, Off -->
|multithreaded rsx notes             =  
|enable 3d notes                       =  
|disable async shader compiler      = <!-- On, Off -->
|disable vertex cache                  = <!-- On, Off -->
|disable async shader compiler notes =  
|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 -->
|audio channels                       = <!-- Surround 7.1, Downmix to Stereo, Downmix to 5.1 -->
|dump to file notes                  =  
|audio channels notes                  =  
|convert to 16-bit                  = <!-- On, Off -->
|dump to file                          = <!-- On, Off -->
|convert to 16-bit notes             =  
|dump to file notes                   =  
|downmix to stereo                  = <!-- On, Off -->
|convert to 16-bit                    = <!-- On, Off -->
|downmix to stereo notes             =  
|convert to 16-bit notes               =  
|volume                             = <!-- Value 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               = <!-- Value 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           = <!-- Value between 0% to 100% -->
|time stretching threshold             = <!-- Value between 0% to 100% -->
|time stretching threshold notes     =  
|time stretching threshold notes       =  
|microphone type                     = <!-- Null, Standard, SingStar, Real SingStar, Rocksmith -->
|microphone type                       = <!-- Disabled, Standard, SingStar, Real SingStar, Rocksmith -->
|microphone type notes               =  
|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 -->
<!-- Advanced configuration -->
|debug console mode                 = <!-- On, Off -->
|debug console mode                   = <!-- On, Off -->
|debug console mode notes           =  
|debug console mode notes             =
|sleep timers accuracy               = <!-- As Host, Usleep Only, All Timers -->
|accurate llvm dfma                    = <!-- On, Off -->
|sleep timers accuracy notes         =  
|accurate llvm dfma notes              =
|read depth buffers                 = <!-- On, Off -->
|accurate rsx reservation access      = <!-- On, Off -->
|read depth buffers notes           =  
|accurate rsx reservation access notes =
|write depth buffers                 = <!-- On, Off -->
|ppu llvm accurate vector nans        = <!-- On, Off -->
|write depth buffers notes           =  
|ppu llvm accurate vector nans notes  =
|read color buffers                 = <!-- On, Off -->
|silence all logs                      = <!-- On, Off -->
|read color buffers notes           =  
|silence all logs notes                =  
|driver wake-up delay               = <!-- Value between 0 to 7000 -->
|sleep timers accuracy                 = <!-- As Host, Usleep Only, All Timers -->
|driver wake-up delay notes         =  
|sleep timers accuracy notes           =
|vblank rate                         = <!-- Value between 1 to 500 -->
|maximum spurs threads                = 3 <!-- Unlimited, Single digit between 0 to 5 (e.g. 3) -->
|vblank rate notes                   =  
|maximum spurs threads notes          = May help with performance.
|clocks scale                       = <!-- Value between 10 to 1000 -->
|firmware libraries                    = <!-- Switch to LLE, Switch to HLE -->
|clocks scale notes                 =  
|firmware libraries notes              = <!-- Mention the libraries to be manually 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    =
|disable native float16 support        = <!-- On, Off -->
|disable native float16 support 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 -->
|disable zcull occlusion queries      = <!-- On, Off -->
|force cpu blit emulation notes     =  
|disable zcull occlusion queries notes =
|use gpu texture scaling             = <!-- On, Off -->
|force cpu blit emulation             = <!-- On, Off -->
|use gpu texture scaling notes       =  
|force cpu blit emulation notes       =  
|accurate getllar                   = <!-- On, Off -->
|use gpu texture scaling               = <!-- On, Off -->
|accurate getllar notes             =  
|use gpu texture scaling notes         =  
|accurate putlluc                    = <!-- On, Off -->
|accurate getllar                     = <!-- On, Off -->
|accurate putlluc notes             =  
|accurate getllar notes               =  
|hook static functions              = <!-- On, Off -->
|hook static functions                = <!-- On, Off -->
|hook static functions notes         =  
|hook static functions notes          =
|accurate ppu 128 reservations        = <!-- Always Enabled, Disabled, Value between 1 to 8 -->
|accurate ppu 128 reservations notes   =  
|ppu llvm java mode handling          = <!-- True, False -->
|ppu llvm java mode handling notes     =  
}}
}}


Line 129: Line 163:
<!-- There are no reported issues with this title. -->
<!-- There are no reported issues with this title. -->


===Crash after Altus logo - <i>Fixed by {{pr|5475}}</i>===
==Special Notes==
<s>There is a known regression affecting '''4-core/4-thread''' CPUs where the game will crash right after the Atlus logo. This issue is being tracked as part of {{issue|4861}}.<br />
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
For people affected by this issue, use this older [https://obk.ee/rpcs3/archive/rpcs3-v0.0.5-6718-737db900_win64.7z build 6718]. If for some reason build 6718 does not work, try [https://obk.ee/rpcs3/archive/rpcs3-v0.0.5-6697-753d8170_win64.7z build 6697].</s>
{{patch
|type    = PPU
|version = 1.2
|content =  
Anchors:
  BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x25ed8, 0x981f ]
 
  # delta time
  # by Whatcookie
    - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
 
  # get mftb
    - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
 
  # get mftb delta
    - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c7c38, 0x3ad62608 ] # addi r22,r22,0x2608  // load low bits of address
    - [ be32, 0x016c7c3c, 0x7e96a02a ] # ldx r20,r22,r20      // load previous frames mftb reading
    - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
 
  # mftb delta to float
    - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c7c4c, 0xcbd60018 ] # lfd f30,0x18(r22)    // load mftb delta into FPR
    - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
    - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
 
  # mftb delta to seconds
    - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
    - [ be32, 0x016c7c5c, 0x3a527c30 ] # addi r18,r18,0x7c30  // load low bits of constants pointer
    - [ be32, 0x016c7c60, 0xc3b20054 ] # lfs f29,0x54(r18)    // load timebase frequency constant
    - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
    - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
 
  # check timestep size
    - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
    - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
 
  # set maximum timestep
    - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
 
  # cleanup
    - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
    - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
    - [ be32, 0x016c7c80, 0x4e800020 ] # blr                  // return
 
  # constants
    - [ be32, 0x016c7c84, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c7c88, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
 
  BLES00932_FpsUnlock: &BLES00932_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x26ac0, 0x981f ]
 
  # delta time
  # by Whatcookie
    - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
 
  # get mftb
    - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
 
  # get mftb delta
    - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c9f58, 0x3ad62608 ] # addi r22,r22,0x2608  // load low bits of address
    - [ be32, 0x016c9f5c, 0x7e96a02a ] # ldx r20,r22,r20      // load previous frames mftb reading
    - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
 
  # mftb delta to float
    - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)    // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c9f6c, 0xcbd60018 ] # lfd f30,0x18(r22)    // load mftb delta into FPR
    - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30        // convert integer to double
    - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
 
  # mftb delta to seconds
    - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c            // load high bits constants pointer
    - [ be32, 0x016c9f7c, 0x62529f50 ] # ori r18,r18,0x9f50    // load low bits of constants pointer
    - [ be32, 0x016c9f80, 0xc3b20054 ] # lfs f29,0x54(r18)    // load timebase frequency constant
    - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)    // load maximum timestep size
    - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29    // divide timebase delta by timebase frequency
 
  # check timestep size
    - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28    // compare current delta time to maximum timestep
    - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08            // don't return the maximum timestep size
 
  # set maximum timestep
    - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28          // move maximum timestep to be returned
 
  # cleanup
    - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20      // zero r20
    - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19      // zero r19
    - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                  // return
 
  # constants
    - [ be32, 0x016c9fa4, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c9fa8, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
 
  DeS_FPS_Notes: &DeS_FPS_Notes "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60FPS, however it's not recommended as users may encounter physics issues."
 
  DeS_DDE_Notes: &DeS_DDE_Notes "Can disable Write Color Buffers for 20% faster performance. Enable this patch if you experience flickering."


==Special Notes==
  DeS_AR_Notes: &DeS_AR_Notes "UI Elements will be stretched"
===60 FPS patch===
Thanks to Whatcookie and Gibbed, a [[Help:Game Patches#Demon's Souls|60 FPS Patch]] is available for this title. Do note, that increasing the FPS beyond 60FPS will cause physics issues. At 120FPS, running into geometry will cause the player's movement to slow down. It is not recommended to increase beyond 60FPS until the movement issue is fixed. Also, due to hardware limitations, many users will find it difficult to hit 120FPS at high resolutions like 4K.


===Reducing log spam===
PPU-83681f6110d33442329073b72b8dc88a2f677172:
Due to the high amount of ''sceNp'' warnings spammed in the log, this title tends to crash during extended gameplay sessions. So it is recommended to restrict logging of this error to allow better performance while ingame. '''Please note that you cannot submit logs in the GitHub tracker or Discord server with this modification'''. If you wish to report bugs or seek help for this game, you '''MUST''' remove the below change before generating the log for this purpose.  
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: GalCiv
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cefbc, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190433c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190433c, 3.5555556 ]


If you wish to restrict logging, you must edit settings that are only present within the config file and cannot be modified from the emulator's GUI. For instructions on how to correctly modify the config file, [[Help:Frequently_Asked_Questions#Modifying_settings_through_config.yml|click here]]. Search for the <code><nowiki>Log:</nowiki></code> option and set it to <code><nowiki>Log: {sceNp: Fatal}</nowiki></code>.
PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLES00932_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00026ac4, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: GalCiv
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008f092c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cf13c, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x01904494, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cf13c, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x01904494, 3.5555556 ]
}}


===Incorrect FPS counter===
===Incorrect FPS counter===
Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30FPS (or 60FPS) at all times while the actual performance could be 15FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug, its just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch, which disables the game's internal frame duplication logic, to check performance levels.
Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30FPS (or 60FPS) at all times while the actual performance could be 15FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug, its just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch, which disables the game's internal frame duplication logic, to check performance levels.
===Netplay IP/Host Switches===
This title requires a private server to access all Netplay features. Enter the below text in the '''IP/Host Switches''' section:
<pre>ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242</pre>
[[Category:Custom servers (Netplay)]]
===Converting PSN version to Disc version===
As mentioned [[#PSN versions do not work|above]], the PSN version of Demon's Souls only displays a blackscreen on boot. To address this, the PSN version of the game needs to be converted to the Disc version to work with RPCS3. Thanks to Hykem for make_npdata and RainbowCookie for automating the process. The steps to convert the game is mentioned below:
# Install the PSN version's PKG and RAP in RPCS3.
# Extract the [https://mega.nz/file/ESR2SDQC#XImLKal623obHsX8PpbCdRJdmGUqJf-TwIEpKkrwTa0 fixer folder] to <code>\dev_hdd0\game\</code>.
# Run '''des_fixer.exe'''.
# Wait for the process to complete (might take a while).
# Once completed, you will see a new Demon's Souls entry in RPCS3's game list and a folder inside <code>\dev_hdd0\disc\</code> called '''DeS-Converted'''.
# Go to <code>fixer\resources\</code> and copy '''PS3_DISC.SFB''' file to '''DeS-Converted''' folder.
# Boot the new Demon's Souls entry in RPCS3.

Revision as of 19:49, 26 July 2021

Demon's Souls
DeS PS3.jpg
Developer(s) FromSoftware
Publisher(s) JP Sony Computer Entertainment
NA Atlus USA
AU/EU Bandai Namco Games
Series Souls
Release date(s) JP February 5, 2009
NA October 6, 2009
AU June 23, 2010
EU June 25, 2010
Release type PlayStation 3 exclusive
Genre(s) Action, Role-playing
Mode(s) Single-player, Multiplayer
GameID(s) BLES00932 (IRD), BLUS30443 (IRD), NPEB01202, NPUB30910, BCAS20071 (IRD)
Quick links Check Compatibility
Open Issues
Search Google
Wikipedia Page

Demon's Souls is the first installment in the Souls series of games created by game director Hidetaka Miyazaki, and was produced under supervision by Sony's Japan Studio. Set in a dark fantasy world, players take control of a hero who has journeyed to the fictional kingdom of Boletaria, which is being ravaged by a cursed fog that brings forth demons who feast on the souls of mortals. The gameplay involves a character-creation system and emphasizes gathering loot through combat with enemies in a non-linear series of varied locations, with a heavy emphasis on challenging combat. It has a unique online multiplayer system integrated into the single-player where players can leave useful messages and warnings for other players' single-player game worlds, as well as joining other players in their world to assist and/or kill them.

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
Resolution scale threshold 640 x 640 Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
Write color buffers On Fixes missing graphics ingame.

Advanced configuration

Setting Option Notes
Maximum SPURS threads 3 May help with performance.

Known Issues

PSN versions do not work

The PARAM.SFO file in the PSN versions are the same as the ones used in the Blu-ray version. Hence, the emulator identifies the games as Blu-rays and tries to install it as such. Due to this, the PSN versions only display a blackscreen.

Missing Geometry

Issue 4302 - There are certain situations when the game doesn't send geometry to be rendered (like the invisible soldier shield).

Special Notes

Patches

Anchors:
  BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x25ed8, 0x981f ]
  
  # delta time
  # by Whatcookie
    - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
  
  # get mftb
    - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c7c38, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c7c3c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c7c4c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c7c5c, 0x3a527c30 ] # addi r18,r18,0x7c30   // load low bits of constants pointer
    - [ be32, 0x016c7c60, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  
  # check timestep size
    - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  
  # set maximum timestep
    - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  
  # cleanup
    - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c7c80, 0x4e800020 ] # blr                   // return
  
  # constants
    - [ be32, 0x016c7c84, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c7c88, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
  
  BLES00932_FpsUnlock: &BLES00932_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x26ac0, 0x981f ]
  
  # delta time
  # by Whatcookie
    - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
  
  # get mftb
    - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c9f58, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c9f5c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c9f6c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c9f7c, 0x62529f50 ] # ori r18,r18,0x9f50    // load low bits of constants pointer
    - [ be32, 0x016c9f80, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  
  # check timestep size
    - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  
  # set maximum timestep
    - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  
  # cleanup
    - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                   // return
  
  # constants
    - [ be32, 0x016c9fa4, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c9fa8, 0.05000000 ] # maximum timestep size (50ms or 20FPS)

  DeS_FPS_Notes: &DeS_FPS_Notes "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60FPS, however it's not recommended as users may encounter physics issues."

  DeS_DDE_Notes: &DeS_DDE_Notes "Can disable Write Color Buffers for 20% faster performance. Enable this patch if you experience flickering."

  DeS_AR_Notes: &DeS_AR_Notes "UI Elements will be stretched"

PPU-83681f6110d33442329073b72b8dc88a2f677172:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: GalCiv
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cefbc, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190433c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190433c, 3.5555556 ]

PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLES00932_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00026ac4, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: GalCiv
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008f092c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cf13c, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x01904494, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cf13c, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x01904494, 3.5555556 ]

Incorrect FPS counter

Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30FPS (or 60FPS) at all times while the actual performance could be 15FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug, its just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch, which disables the game's internal frame duplication logic, to check performance levels.

Netplay IP/Host Switches

This title requires a private server to access all Netplay features. Enter the below text in the IP/Host Switches section:

ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242

Converting PSN version to Disc version

As mentioned above, the PSN version of Demon's Souls only displays a blackscreen on boot. To address this, the PSN version of the game needs to be converted to the Disc version to work with RPCS3. Thanks to Hykem for make_npdata and RainbowCookie for automating the process. The steps to convert the game is mentioned below:

  1. Install the PSN version's PKG and RAP in RPCS3.
  2. Extract the fixer folder to \dev_hdd0\game\.
  3. Run des_fixer.exe.
  4. Wait for the process to complete (might take a while).
  5. Once completed, you will see a new Demon's Souls entry in RPCS3's game list and a folder inside \dev_hdd0\disc\ called DeS-Converted.
  6. Go to fixer\resources\ and copy PS3_DISC.SFB file to DeS-Converted folder.
  7. Boot the new Demon's Souls entry in RPCS3.