aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.cc
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-02-16 19:33:54 +1100
committerNicolas James <nj3ahxac@gmail.com>2026-02-16 19:33:54 +1100
commitd1d52c4ae326268ae4691f2576b034154e3e3901 (patch)
tree9fbdf7af2378ef7b599bc0cf2b7fe60f246aa1e3 /src/queue_context.cc
parenta64bf66a50bf628714bdf148e3136d1c549bea70 (diff)
fix
Diffstat (limited to 'src/queue_context.cc')
-rw-r--r--src/queue_context.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/queue_context.cc b/src/queue_context.cc
index 4c8f776..bd3bd30 100644
--- a/src/queue_context.cc
+++ b/src/queue_context.cc
@@ -411,7 +411,7 @@ void QueueContext::sleep_in_present() {
return a->gpu_time < b->gpu_time;
});
// return vect[0]->frametime;
- return vect[std::size(vect) / 2]->gpu_time;
+ return vect[std::size(vect) / 2]->cpu_time;
}();
std::cerr << " expected gputime: ";
debug_log_time(expected_gputime);
@@ -422,9 +422,9 @@ void QueueContext::sleep_in_present() {
// |--------------|-------------------|----------------|
// a swap_acquire b c
//
- // Us, the CPU on the host, is approximately at 'b'.
- // We have a good guess for the distance between
- // a and b (median gputime). The GPU is at any point on this line.
+ // Us, the CPU on the host, is approximately at 'b'. We have a good guess
+ // for the distance between a and b as gputime. Our educated guess for the
+ // distance between b and c is cputime. The GPU is between a and b.
const auto& frame = this->in_flight_frames.back();