Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Jun 16, 2024
1 parent 42bf617 commit 68c2e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tulip/linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ int main(int argc, char **argv) {
if(c>=0) {
// Figure out how long to sleep. ticks has the amount of time already spent for this frame
// so let's fill in the rest with a usleep.
int sleep_ms_for_frame = (int) ((1000.0/TARGET_DESKTOP_FPS) - ticks);
int sleep_ms_for_frame = (int) ((1000.0/TARGET_DESKTOP_FPS) - c);
if(sleep_ms_for_frame > 0) usleep(1000*sleep_ms_for_frame);
}
}
Expand Down

0 comments on commit 68c2e45

Please sign in to comment.