Skip to content

Commit

Permalink
feat: Reduce fragment queue wait time from 100 microseconds to 10 mil…
Browse files Browse the repository at this point in the history
…liseconds
  • Loading branch information
ekg committed Sep 26, 2024
1 parent c569b46 commit 62e9047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ namespace skch
for (auto& fragment : fragments) {
while (!fragment_queue.try_push(fragment)) {
//std::this_thread::yield(); // too fast
std::this_thread::sleep_for(std::chrono::microseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}

Expand Down

0 comments on commit 62e9047

Please sign in to comment.