Skip to content

Commit faf2a40

Browse files
committed
Make sure timer works without frame cap.
In future I'd like to make a warning for runners, that they speedrun without FPS lock. By the time PC's can get fast enough to break the game and the autosplitter.
1 parent a6d0619 commit faf2a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async fn main() {
9393
}
9494
unsafe {
9595
let start = || {
96-
if briefingByte == 1 && fps < 1000.0 ||
96+
if briefingByte == 1 && fps < 10000.0 ||
9797
(loadByte == 1 && oldLoad != 1) && fps != 60.0 && warRecordStr == "\\splash\\Loadbar.dds" {
9898
asr::timer::start();
9999
}
@@ -124,8 +124,8 @@ async fn main() {
124124
warRecord = 0;
125125
}
126126

127-
if loadByte == 0 && (briefingByte != 1 && fps < 1000.0) && warRecord != 1
128-
|| fps > 1000.0 {
127+
if loadByte == 0 && (briefingByte != 1 && fps < 10000.0) && warRecord != 1
128+
|| fps > 10000.0 {
129129
asr::timer::pause_game_time();
130130
}
131131
else {

0 commit comments

Comments
 (0)