Skip to content

Commit

Permalink
merian-nodes: Graph: low latency: don't enforce min sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Aug 12, 2024
1 parent f76c59f commit 7ee1a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/merian-nodes/graph/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class Graph : public std::enable_shared_from_this<Graph<RING_SIZE>> {

if (low_latency_mode && !needs_reconnect) {
const auto total_wait =
std::max((gpu_wait_time + external_wait_time + cpu_sleep_time - 0.1ms), 0.01ms);
std::max((gpu_wait_time + external_wait_time + cpu_sleep_time - 0.1ms), 0.00ms);
cpu_sleep_time = 0.92 * total_wait;
std::this_thread::sleep_for(cpu_sleep_time);
} else {
Expand Down

0 comments on commit 7ee1a93

Please sign in to comment.