Skip to content
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

Add support for triple buffered partial rendering with Skia #7440

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

tronical
Copy link
Member

@tronical tronical commented Jan 23, 2025

cc #7247

@tronical tronical requested a review from ogoffart January 23, 2025 16:11
@tronical tronical mentioned this pull request Jan 23, 2025
4 tasks
@@ -120,6 +119,8 @@ pub struct SkiaRenderer {
pre_present_callback: RefCell<Option<Box<dyn FnMut()>>>,
partial_rendering_state: Option<PartialRenderingState>,
visualize_dirty_region: bool,
/// Tracking dirty regions indexed by buffer age - 1. More than 3 back buffers aren't supported, but also unlikely to happen.
back_buffer_dirty_regions_by_age_minus_1: RefCell<[DirtyRegion; 3]>,
Copy link
Member

Choose a reason for hiding this comment

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

There must exist a better name :-). Maybe dirty_region_history

Copy link
Member Author

Choose a reason for hiding this comment

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

That is a better name - thanks :)

@tronical tronical force-pushed the simon/partial-renderer-triple-buffer branch from ba7ba9a to 39b27bb Compare January 23, 2025 17:26
@tronical tronical merged commit 3cb4bd1 into master Jan 23, 2025
10 checks passed
@tronical tronical deleted the simon/partial-renderer-triple-buffer branch January 23, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants