An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix: restrict VRAM stall detection to AMD SDK (#16319)
21pagesb30f781fd674
diff --git a/libs/scrap/src/common/vram.rs b/libs/scrap/src/common/vram.rsindex 3c140abb3..16e21cd7a 100644--- a/libs/scrap/src/common/vram.rs+++ b/libs/scrap/src/common/vram.rs@@ -118,12 +118,15 @@ impl EncoderApi for VRamEncoder {});}if frames.len() > 0 {- // This kind of problem is occurred after a period of time when using AMD encoding,+ // This kind of problem is occurred after a period of time when using the AMD SDK,// the encoding length is fixed at about 40, and the picture is stillconst MIN_BAD_LEN: usize = 100;const MAX_BAD_COUNTER: usize = 30;let this_frame_len = frames[0].data.len();- if this_frame_len < MIN_BAD_LEN && this_frame_len == self.last_frame_len {+ if self.ctx.f.driver == Driver::AMF+ && this_frame_len < MIN_BAD_LEN+ && this_frame_len == self.last_frame_len+ {self.same_bad_len_counter += 1;if self.same_bad_len_counter >= MAX_BAD_COUNTER {log::info!(