User:Scalerize: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
(Created page with "<br>'''Research:''' <br>'''SLUS-21281''' <pre>0x0054B5D4 Nopping this (JAL) boosts the fps but also breaks graphics even further ============= Functions that need editing: 0x0...")
 
mNo edit summary
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<br>'''Research:'''
TODO:
<br>'''SLUS-21281'''
 
<pre>0x0054B5D4
1: Patch IOP to fix the restarting music
Nopping this (JAL) boosts the fps but also breaks graphics even further
2: Patch the physics instructions
=============
3: Refine the patch's performance
Functions that need editing:
 
0x00558900
Move this info elsewhere:
0x00557A00
 
0x00558740
<br>'''Delay GIF'''
0x00554A10
<pre>
0x0054A8E0
apiRequest(0.1)
0x00555A80
 
local eeObj = getEEObject()
local emuObj = getEmuObject()
 
eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent("gif.dma", 0x60500) end)
</pre>
 
<br>'''Patch EE memory'''
<pre>
apiRequest(0.1)
 
local eeObj = getEEObject()
local emuObj = getEmuObject()
 
local patcher = function()
eeObj.WriteMem32(0x001958A0, 0x10000086)
end
emuObj.AddVsyncHook(patcher)
</pre>
 
<br>'''Speedhacks'''
<pre>
apiRequest(0.1)
 
local eeObj = getEEObject()
local emuObj = getEmuObject()
 
eeObj.AddHook(0x002cc350, 0x78a30000, function()
          eeObj.AdvanceClock(21000)
          eeObj.Vu1MpgCycles(2000)
          eeObj.FastForwardClock()
end)
</pre>
</pre>

Latest revision as of 22:12, 19 September 2024

TODO:

1: Patch IOP to fix the restarting music 2: Patch the physics instructions 3: Refine the patch's performance

Move this info elsewhere:


Delay GIF

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

eeObj.AddHook(0x0033A540,0xAC430000, function() eeObj.SchedulerDelayEvent("gif.dma", 0x60500) end)


Patch EE memory

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

local patcher = function()
eeObj.WriteMem32(0x001958A0, 0x10000086)
end
emuObj.AddVsyncHook(patcher)


Speedhacks

apiRequest(0.1)

local eeObj = getEEObject()
local emuObj = getEmuObject()

eeObj.AddHook(0x002cc350, 0x78a30000, function()
          eeObj.AdvanceClock(21000)
          eeObj.Vu1MpgCycles(2000)
          eeObj.FastForwardClock()
end)