voelin-core: drop the frame a failed GPU conversion leaves behind
When a conversion failed, the sink had already counted the frame and taken its layers' pacing, then declined it: the portal mapped it, the CPU path counted it a second time and found no layer due. Drop that one frame instead; the next one takes the CPU path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f9d81ebc0
commit
c24546dd26
1 file changed
+3
-1
@@ -1644,7 +1644,9 @@ impl Ingest {
|
|||||||
*lock(&shared.gpu_error) = Some(e.to_string());
|
*lock(&shared.gpu_error) = Some(e.to_string());
|
||||||
self.gpu.converter = Some(Err(()));
|
self.gpu.converter = Some(Err(()));
|
||||||
self.gpu.out.clear();
|
self.gpu.out.clear();
|
||||||
return None;
|
// This frame is counted and its layers' pacing taken: it is
|
||||||
|
// dropped, and the next one takes the CPU path.
|
||||||
|
return Some(true);
|
||||||
}
|
}
|
||||||
shared.gpu_convert_ns.fetch_add(started.elapsed().as_nanos() as u64, Ordering::Relaxed);
|
shared.gpu_convert_ns.fetch_add(started.elapsed().as_nanos() as u64, Ordering::Relaxed);
|
||||||
shared.gpu_converted.fetch_add(1, Ordering::Relaxed);
|
shared.gpu_converted.fetch_add(1, Ordering::Relaxed);
|
||||||
|
|||||||
Reference in new issue
Block a user