Skip to content

Commit

Permalink
rb1/lrb: disable vsync in certain areas
Browse files Browse the repository at this point in the history
  • Loading branch information
lunalawl committed Aug 7, 2024
1 parent 37a8b8d commit 773cec3
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 13 deletions.
9 changes: 6 additions & 3 deletions lrb/_ark/dx/dx_init.dta
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
{set $dx_guitar_slot kControllerGuitar}
{set $dx_drum_slot kControllerDrum}

{rnd set_sync 1}

{set $emulatefps 24}

{set $dx_vsync TRUE}

#ifndef _SHIP {tour toggle_all_unlock} #endif
#ifdef _SHIP INIT_DTA_READER #endif
#ifdef _SHIP INIT_DTA_READER #endif

{rnd set_sync $set_sync}
4 changes: 3 additions & 1 deletion lrb/_ark/dx/dx_macros.dta
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
{elem {find $entry venue_fps} 1}
}
}
#ifdef HX_PS3
{if {== {elem $entry 0} {basename vsync}}
{rnd set_sync
{set $dx_vsync
{elem {find $entry vsync} 1}
}
}
#endif
{if {== {elem $entry 0} {basename pad_slot}}
{set $dx_pad_slot
{elem {find $entry pad_slot} 1}
Expand Down
2 changes: 2 additions & 0 deletions lrb/_ark/fusion/ui/calibration/calibration.dta
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
(parent
{ui current_screen})
(enter
{rnd set_sync 1}
{meta music_stop}
{platform_mgr disable_xmp})
(exit
{rnd set_sync $set_sync}
{meta music_start}
{platform_mgr enable_xmp}
{input_mgr set_user ''})
Expand Down
5 changes: 4 additions & 1 deletion lrb/_ark/fusion/ui/main/main_startmenu.dta
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@
{== $action kAction_Confirm}}
{synth play button_select}
{$this move_on}})
(enter)
(enter
{rnd set_sync 1})
(exit
{rnd set_sync $set_sync})
(poll
{if
{TexMovie.tmov get played}
Expand Down
1 change: 0 additions & 1 deletion lrb/_ark/ui/game.dta
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@
(enter
;venue fps setup
#ifdef _SHIP
INIT_DTA_READER
DX_FPS_SETUP
#endif
{if
Expand Down
2 changes: 1 addition & 1 deletion lrb/platform/ps3/USRDIR/config.dta
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

; Venue FPS (Default: 24, can go up to 60)
(venue_fps
(venue_fps 60)
(venue_fps 24)
)
; Vsync (0: Uncapped FPS, 1: 60FPS)
(vsync
Expand Down
8 changes: 5 additions & 3 deletions rb1/_ark/dx/dx_init.dta
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
{set $dx_guitar_slot kControllerGuitar}
{set $dx_drum_slot kControllerDrum}

{rnd set_sync 1}

{set $emulatefps 24}

INIT_DTA_READER
{set $dx_vsync TRUE}

INIT_DTA_READER

{rnd set_sync $set_sync}
4 changes: 3 additions & 1 deletion rb1/_ark/dx/dx_macros.dta
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
{elem {find $entry autoplay} 1}
}
}
#ifdef HX_PS3
{if {== {elem $entry 0} {basename vsync}}
{rnd set_sync
{set $dx_vsync
{elem {find $entry vsync} 1}
}
}
#endif
{if {== {elem $entry 0} {basename pad_slot}}
{set $dx_pad_slot
{elem {find $entry pad_slot} 1}
Expand Down
2 changes: 0 additions & 2 deletions rb1/_ark/ui/game.dta
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
(script
{handle
($this intro_end)})}
INIT_DTA_READER
{world_panel set_showing {! $dx_black_background}}
kDataUnhandled)
(intro_skip
Expand Down Expand Up @@ -251,7 +250,6 @@
TRUE}
{$this pause_for_mic}}})
(enter
INIT_DTA_READER
DX_FPS_SETUP
{if $dx_autoplay {do {beatmatch foreach_active_player $player {$player set_auto_play enable}}}}
{set
Expand Down
4 changes: 4 additions & 0 deletions rb1/_ark/ui/leaderboards.dta
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@
{featurette_panel get featurette_num}})
(movie_done
{ui goto_screen community_specialfeatures_screen})
(enter {rnd set_sync 1})
(exit {rnd set_sync $set_sync})
(BUTTON_DOWN_MSG
{if
{'||'
Expand All @@ -615,6 +617,8 @@
(videos win_credits)
(movie_done
{ui goto_screen credits_screen})
(enter {rnd set_sync 1})
(exit {rnd set_sync $set_sync})
(BUTTON_DOWN_MSG
{if
{'||'
Expand Down
4 changes: 4 additions & 0 deletions rb1/_ark/ui/main.dta
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
(movie_done
{ui goto_screen intro_to_splash_screen})
(enter
{rnd set_sync 1}
{platform_mgr disable_xmp}
{ui goto_screen splash_screen}
kDataUnhandled)
(exit {rnd set_sync $set_sync})
(BUTTON_DOWN_MSG
{if
{'||'
Expand Down Expand Up @@ -951,6 +953,8 @@
(videos attract)
(movie_done
{ui goto_screen splash_screen})
(enter {rnd set_sync 1})
(exit {rnd set_sync $set_sync})
(BUTTON_DOWN_MSG
{if
{'||'
Expand Down
2 changes: 2 additions & 0 deletions rb1/_ark/ui/options.dta
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@
(back select)}
{syncoff.grp set_showing FALSE})})
(enter
{rnd set_sync 1}
{set
[cycle_time_ms]
755}
Expand All @@ -1454,6 +1455,7 @@
set_limit_to_player_num
{calibrate_video_offset_screen get player_num}})
(exit
{rnd set_sync $set_sync}
{if
[running]
{$this stop_audio}}
Expand Down
2 changes: 2 additions & 0 deletions rb1/_ark/ui/tour_band.dta
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,8 @@
(videos win_credits)
(movie_done
{ui goto_screen tour_band_text_credits_screen})
(enter {rnd set_sync 1})
(exit {rnd set_sync $set_sync})
LIMIT_TO_SESSION_LEADER
(BUTTON_DOWN_MSG
{if
Expand Down
2 changes: 2 additions & 0 deletions rb1/_ark/ui/tour_solo.dta
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,8 @@
LIMIT_TO_LEADER_SESSION
(movie_done
{ui goto_screen tour_solo_text_credits_screen})
(enter {rnd set_sync 1})
(exit {rnd set_sync $set_sync})
(BUTTON_DOWN_MSG
{if
{'||'
Expand Down

0 comments on commit 773cec3

Please sign in to comment.