fix remote desktop being slow

This commit is contained in:
KingKDot
2026-05-22 22:55:41 -05:00
parent 8d0c0f3f33
commit 345426091e
2 changed files with 1 additions and 8 deletions
@@ -710,7 +710,6 @@ func (s *duplicationState) capture(display int) (*image.RGBA, error) {
if img == s.lastBase || img == s.cursorScratch {
img = cloneRGBA(img)
}
s.lastFrame = cloneRGBA(img)
s.lastFrameAt = time.Now()
return img, nil
}
@@ -808,7 +807,7 @@ func (s *duplicationState) capture(display int) (*image.RGBA, error) {
// the next compose doesn't write into a buffer the caller has pooled.
img = cloneRGBA(img)
}
s.lastFrame = cloneRGBA(img)
s.lastFrame = nil
s.lastFrameAt = time.Now()
return img, nil