Skip to content

Commit

Permalink
moving back to zero comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilpazintel committed Jan 8, 2025
1 parent 0fb3144 commit f03eaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/rendering.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace rs2
std::lock_guard<std::mutex> lock(_mtx);
if (++_counter >= _skip_frames)
{
if (std::abs(_last_timestamp) > std::numeric_limits<double>::epsilon() && frame_counter > _last_frame_counter)
if (_last_timestamp != 0 && frame_counter > _last_frame_counter)
{
_delta = timestamp - _last_timestamp;
_num_of_frames = frame_counter - _last_frame_counter;
Expand Down

0 comments on commit f03eaab

Please sign in to comment.