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

[request] Disable OSR by default, OSR mode causes multiple issues #302

Open
jetspiking opened this issue Mar 17, 2023 · 1 comment
Open

Comments

@jetspiking
Copy link

Hello,

Off-screen rendering causes several issues in my experience, such as:

  • Slower initial page loading.
  • Keys such as " tab", "enter", "left", "right", shortcuts, etc. not working properly.
  • WebView randomly turning unresponsive.

It seems to me that it would be more logical to disable OSR by default, due to the occuring issues. I spend quite a bit of time before I realized the OSR setting was the issue.

@joaompneves
Copy link
Collaborator

Hi,

Although OSR=false is indeed the recommended setting, but making that the default would be a breaking change, for existing consumers.
OSR=false also requires Avalonia to be setup in the following way:

.With(new Win32PlatformOptions { UseWindowsUIComposition = false })

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

No branches or pull requests

2 participants