-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Interface elements are missing, pictures are incorrectly provided, tiring etc. #5509
Comments
@Gillibald can you explain how i can modify this option in |
I tried to add
|
Strange, cloning the repo now to take a look. |
@grokys I works with LARGE images |
Thanks, I'm currently running on Windows and with your test image set I indeed see that image rendering is slow, but as you say it's improved by giving skia more GPU resources.
In addition, the application here seems to be using the light theme while the movie is using the dark theme, could it be that I'm testing a different commit to you? I checked out |
|
The same you can see at Citrus.Avalonia.Sandbox
|
Buttons will works fine and now is not disappear But: images still rendering incorrect: only a small part of image shows. |
I think only a small part of the image showing is due to how you're using the ZoomAndPan control. If you use DevTools and hover over the (It's a bit hard to see here but there is a blue rectangle overlay displaying the bounds of the control) It looks like the Given that the problems were:
I'm going to close this issue. Please add a comment if you think I'm closing in error. |
I am not sure if it's normal for Citrus.Avalonia. Problem can be on our side too. @worldbeater |
yep i think too. Citrus.Avalonia is not use any difficult and custom logic, it is simply set of modifiers for default theme... I did a little research and ran the Citrus.Avalonia.Sandbox on different os. Buttons disappear only on Linux Ubuntu 20.10 (gnome). But for Ubuntu KDE everything is fine. It seems strange to me. I advise you to pay attention to this problem and look at behavior of Citrus.Avalonia.Sandbox. |
Ok reopening then! |
Yeah encountered yet another runtime theme changing issue with Citrus.Avalonia #5530 Assuming Citrus.Avalonia is just a bunch of style selectors, probably we are using a weird selector somewhere in the library. Although I wasn't able to find out what's causing the buggy behavior yet, so probably that's something else. |
d |
I was able to spot the problem.
How to reproduce? <Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyApp">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseDark.xaml" />
</Application.Styles>
</Application> MainWindow,xaml <Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="{DynamicResource ThemeBackgroundColor}"
x:Class="MyApp.MainWindow"
Width="920" Height="630">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Padding="20"
CornerRadius="3"
BorderThickness="2 1 2 4"
BorderBrush="Black"
Background="Red"
Margin="7"
BoxShadow="5 5 10 2 Blue">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ComboBox Grid.Row="0" SelectedIndex="0">
<ComboBoxItem Content="First option" />
<ComboBoxItem Content="Second option" />
<ComboBoxItem Content="Third option" />
</ComboBox>
<ComboBox Grid.Row="1" SelectedIndex="0">
<ComboBoxItem Content="First option" />
<ComboBoxItem Content="Second option" />
<ComboBoxItem Content="Third option" />
</ComboBox>
<ComboBox Grid.Row="2" SelectedIndex="0">
<ComboBoxItem Content="First option" />
<ComboBoxItem Content="Second option" />
<ComboBoxItem Content="Third option" />
</ComboBox>
</Grid>
</Border>
</Grid>
</Window> See a problem. But it works fine with symmetric |
bug.mp4 |
Expected to be fixed in 0.10.11 with updated Skia. It did fix another similar issue on m1. |
Describe the bug
After the update, the interface elements disappear, the images are rendered incorrectly, friezes and tearing.
To Reproduce
Update avalonia 0.9.12 -> 0.10.0
lacmus-foundation/lacmus-app@5a6a5bb
Expected behavior
Interface and animations makes slow, tiring, incorrect image rendering
Screenshots
The demonstration: avalonia 0.9.12 (left) vs avalonia 0.10.0 (right)
Desktop (please complete the following information):
Additional context
The new version of Avalonia consumes very little GPU memory. In addition, before and after images are loaded, the amount of memory consumed remains unchanged. For comparison, for avadonia 0.9.12, this amount changes from 40 mb to 150 mb
The bug with disappearing interface elements also manifests itself in other applications. For example in Citrus.Avalonia.Sandbox
The interface after update is slow and veeeery slow. all animations are slowed down.
In my opinion, something is wrong with GPU usage.
https://github.com/lacmus-foundation/lacmus-app/blob/dev_avalonia_0_10/src/Program.cs#L64 - here are my startup config
I've tryed to use
.UseSkia()
or.With(new X11PlatformOptions { UseGpu = True })
but nothing helpsThe text was updated successfully, but these errors were encountered: