mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-25 19:16:52 +01:00
[XCX] Fix black bar by just using old 60FPS solution
This commit is contained in:
parent
9fd5e5c874
commit
c6d1674ad5
@ -73,6 +73,9 @@ averageFPS1Inv:
|
||||
averageFPS0.1:
|
||||
.float ($fpsLimit/300.0)
|
||||
|
||||
const_guiSpeed:
|
||||
.float $guiSpeed
|
||||
|
||||
buffer:
|
||||
.float 30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 ; buffer can only store a max length of 32 frames
|
||||
|
||||
@ -171,6 +174,13 @@ lfs f7, bufferSizeDivider@l(r10)
|
||||
fdivs f10, f10, f7
|
||||
|
||||
_setGameSpeed:
|
||||
; Prevent the FPS from going below the lower FPS limit bounds.
|
||||
lis r10, lowFPSLimit@ha
|
||||
lfs f7, lowFPSLimit@l(r10)
|
||||
fcmpu cr0, f10, f7
|
||||
bgt .+0x08
|
||||
fmr f10, f7
|
||||
|
||||
; Set game speed (30 range)
|
||||
lis r10, averageFPS30@ha
|
||||
stfs f10, averageFPS30@l(r10)
|
||||
@ -258,8 +268,12 @@ moduleMatches = 0xF882D5CF
|
||||
0x0276A860 = lfs f31, averageFPS1Inv@l(r8) ; Sync in-game cutscenes
|
||||
0x025F299C = lis r12, averageFPS1Inv@ha ; Move__11CfSceneTaskFv ; Filter CPU, 30FPS logic
|
||||
0x025F29A4 = lfs f31, averageFPS1Inv@l(r12) ; Move__11CfSceneTaskFv
|
||||
0x02D39D6C = lis r12, averageFPS1Inv@ha ; AnimeObject::set
|
||||
0x02D39D70 = lfs f13, averageFPS1Inv@l(r12) ; AnimeObject::set
|
||||
# 0x02D39D6C = lis r12, const_guiSpeed@ha ; AnimeObject::set
|
||||
# 0x02D39D70 = lfs f13, const_guiSpeed@l(r12) ; AnimeObject::set
|
||||
0x02D20328 = lis r12, const_guiSpeed@ha ; MenuObject::playEvent
|
||||
0x02D2032C = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEvent
|
||||
0x02D203F4 = lis r12, const_guiSpeed@ha ; MenuObject::playEventFrame
|
||||
0x02D203F8 = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEventFrame
|
||||
|
||||
; Call GX2SetSwapInterval with 0 which removes any vsync
|
||||
0x02FD8A94 = li r3, 0
|
||||
@ -296,8 +310,12 @@ moduleMatches = 0x7672271D
|
||||
0x02768FD8 = lfs f31, averageFPS1Inv@l(r8) ; Sync in-game cutscenes
|
||||
0x025F1F78 = lis r12, averageFPS1Inv@ha ; Move__11CfSceneTaskFv ; Filter CPU, 30FPS logic
|
||||
0x025F1F80 = lfs f31, averageFPS1Inv@l(r12) ; Move__11CfSceneTaskFv
|
||||
0x02D35234 = lis r12, averageFPS1Inv@ha ; AnimeObject::set
|
||||
0x02D35238 = lfs f13, averageFPS1Inv@l(r12) ; AnimeObject::set
|
||||
# 0x02D35234 = lis r12, const_guiSpeed@ha ; AnimeObject::set
|
||||
# 0x02D35238 = lfs f13, const_guiSpeed@l(r12) ; AnimeObject::set
|
||||
0x02D1B818 = lis r12, const_guiSpeed@ha ; MenuObject::playEvent
|
||||
0x02D1B81C = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEvent
|
||||
0x02D1B8E4 = lis r12, const_guiSpeed@ha ; MenuObject::playEventFrame
|
||||
0x02D1B8E8 = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEventFrame
|
||||
|
||||
; Call GX2SetSwapInterval with 0 which removes any vsync
|
||||
0x02FD3F5C = li r3, 0
|
||||
@ -334,8 +352,12 @@ moduleMatches = 0x30B6E091
|
||||
0x0276A860 = lfs f31, averageFPS1Inv@l(r8) ; Sync in-game cutscenes
|
||||
0x025F299C = lis r12, averageFPS1Inv@ha ; Move__11CfSceneTaskFv ; Filter CPU, 30FPS logic
|
||||
0x025F29A4 = lfs f31, averageFPS1Inv@l(r12) ; Move__11CfSceneTaskFv
|
||||
0x02D39CE0 = lis r12, averageFPS1Inv@ha ; AnimeObject::set
|
||||
0x02D39CE4 = lfs f13, averageFPS1Inv@l(r12) ; AnimeObject::set
|
||||
# 0x02D39CE0 = lis r12, const_guiSpeed@ha ; AnimeObject::set
|
||||
# 0x02D39CE4 = lfs f13, const_guiSpeed@l(r12) ; AnimeObject::set
|
||||
0x02D202C8 = lis r12, const_guiSpeed@ha ; MenuObject::playEvent
|
||||
0x02D202CC = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEvent
|
||||
0x02D20394 = lis r12, const_guiSpeed@ha ; MenuObject::playEventFrame
|
||||
0x02D20398 = lfs f31, const_guiSpeed@l(r12) ; MenuObject::playEventFrame
|
||||
|
||||
; Call GX2SetSwapInterval with 0 which removes any vsync
|
||||
0x02FD8A34 = li r3, 0
|
||||
|
@ -10,67 +10,80 @@ $fpsLimit = 60
|
||||
$cutsceneFPSLimit:int = 1
|
||||
$lowFPSLimit = 20
|
||||
$frameAverageAmount = 8
|
||||
$guiSpeed = 1.0
|
||||
|
||||
[Preset]
|
||||
name = 240FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 240
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 165FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 165
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 144FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 144
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 120FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 120
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 90FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 90
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 75FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 75
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 72FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 72
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 60FPS Limit (Default)
|
||||
category = FPS Limit
|
||||
default = 1
|
||||
$fpsLimit = 60
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 55FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 55
|
||||
$guiSpeed = 0.5
|
||||
|
||||
[Preset]
|
||||
name = 45FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 45
|
||||
$guiSpeed = 1.0
|
||||
|
||||
[Preset]
|
||||
name = 30FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 30
|
||||
$guiSpeed = 1.0
|
||||
|
||||
[Preset]
|
||||
name = 20FPS Limit
|
||||
category = FPS Limit
|
||||
$fpsLimit = 20
|
||||
$guiSpeed = 1.0
|
||||
|
||||
|
||||
# [Preset]
|
||||
|
Loading…
Reference in New Issue
Block a user