Skip to content

feat(server): find & send the damaged tiles#771

Merged
Benoît Cortier (CBenoit) merged 2 commits into
Devolutions:masterfrom
elmarco:diff
Apr 22, 2025
Merged

feat(server): find & send the damaged tiles#771
Benoît Cortier (CBenoit) merged 2 commits into
Devolutions:masterfrom
elmarco:diff

Conversation

@elmarco
Copy link
Copy Markdown
Contributor

Keep a framebuffer and tile-diff against it, to save from
encoding/sending the same bitmap data regions.

(from #670)

Add some helper to find "damaged" regions, as 64x64 tiles.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Keep a framebuffer and tile-diff against it, to save from
encoding/sending the same bitmap data regions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Comment on lines +297 to +301
#[cfg(test)]
mod tests {
use super::{BitmapUpdate, Framebuffer};
use core::num::NonZeroU16;
use ironrdp_graphics::{diff::Rect, image_processing::PixelFormat};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Same as #733 (comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah.. it's a tough requirement.. this is unit-testing the internal framebuffer state after an update. Since tests are disabled this isn't even built.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want, we can merge as-is, and I’ll look into that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, wfm -- there are certainly many things to be improved :) thanks

@CBenoit Benoît Cortier (CBenoit) merged commit fb3769c into Devolutions:master Apr 22, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants