Skip to content

Commit

Permalink
Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Aug 13, 2023
1 parent a2cc3fe commit 5cbcbf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/windows/display_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ namespace platf::dxgi {

if (img_out) {
*next_frame_time += client_frame_interval;

if (img_out->frame_timestamp) {
*next_frame_time -= (std::chrono::steady_clock::now() - *img_out->frame_timestamp);
}
}
else {
next_frame_time = std::nullopt;
Expand Down

0 comments on commit 5cbcbf0

Please sign in to comment.