Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025
Merged

Conversation

elmarco
Copy link
Contributor

@elmarco elmarco commented Apr 22, 2025

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

(from #670)

elmarco added 2 commits April 22, 2025 14:22
Add some helper to find "damaged" regions, as 64x64 tiles.

Signed-off-by: Marc-André Lureau <[email protected]>
Keep a framebuffer and tile-diff against it, to save from
encoding/sending the same bitmap data regions.

Signed-off-by: Marc-André Lureau <[email protected]>
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
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
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
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
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 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