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

Don't create a layer if the previous frame is retained by the render target #14924

Merged
merged 5 commits into from
Mar 12, 2024

Conversation

kekekeks
Copy link
Member

This can save performance with low-end devices that are using CPU rendering. Creating a layer introduces an extra blit, that isn't necessary if framebuffer contents are preserved between frames anyway

@kekekeks kekekeks added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Mar 12, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0046107-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit 086fe52 into master Mar 12, 2024
5 of 7 checks passed
@maxkatz6 maxkatz6 deleted the feature/retained-framebufer branch March 12, 2024 19:23
maxkatz6 pushed a commit that referenced this pull request Apr 6, 2024
…target (#14924)

* Don't create a layer if the previous frame is retained by the render target

* D2D

* compile

* Only check PreviousFrameIsRetained if not using layer

* ABI
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants