Skip to content

Commit

Permalink
fix: fps
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Nov 24, 2024
1 parent 76f7dc7 commit 4c6b753
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/rendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ bool c_render::do_render(s_render_commands render_commands) {

if (!status.init) {
status.init = true;
status.start_time = std::chrono::steady_clock::now();
}
else {
auto current_time = std::chrono::steady_clock::now();
Expand All @@ -305,8 +306,6 @@ bool c_render::do_render(s_render_commands render_commands) {
status.fps = status.current_frame / status.elapsed_time.count();
}

status.start_time = std::chrono::steady_clock::now();

status.update_progress_string(first);

std::cout << status.progress_string << "\n";
Expand Down

0 comments on commit 4c6b753

Please sign in to comment.