View Issue Details

IDProjectCategoryView StatusLast Update
0003161NoesisGUIC# SDKpublic2024-03-27 11:03
ReporterDemond Assigned Tosfernandez  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.3 
Target Version3.2.4Fixed in Version3.2.4 
Summary0003161: Low performance when using BackgroundEffectBehavior.BlurEffect on many elements
DescriptionI noticed in RenderDoc how the background is rendered several times in the offscreen. Each background is rendered into its own separate offscreen texture. The number of textures corresponds to the number of elements with this effect. Is this behavior advisable and am I using this effect correctly? Why is the background re-rendered into a separate offscreen texture? Why can't I use the background texture directly?

<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=NoesisGUI.GUI.Extensions">
  <Grid.Resources>
    <ResourceDictionary>
      <Style TargetType="Rectangle">
        <Setter Property="Width" Value="100" />
        <Setter Property="Height" Value="32" />
        <Setter Property="Margin" Value="0 4 0 0" />
        <Setter Property="Fill" Value="#40FFFFFF" />
        <Setter Property="noesis:StyleInteraction.Behaviors">
          <Setter.Value>
            <noesis:StyleBehaviorCollection>
              <noesis:BackgroundEffectBehavior Source="{Binding ElementName=BGImage}">
                <BlurEffect Radius="10"/>
              </noesis:BackgroundEffectBehavior>
            </noesis:StyleBehaviorCollection>
          </Setter.Value>
        </Setter>
      </Style>
    </ResourceDictionary>
  </Grid.Resources>
  <Border>
    <Image x:Name="BGImage" Source="Background.jpg" Stretch="Fill"/>
  </Border>

  <StackPanel Orientation="Horizontal">
    <StackPanel>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
    </StackPanel>
    <Span Width="40" />
    <StackPanel>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
    </StackPanel>
    <Span Width="40" />
    <StackPanel>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
    </StackPanel>
    <Span Width="40" />
    <StackPanel>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
    </StackPanel>
    <Span Width="40" />
    <StackPanel>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
      <Rectangle/>
    </StackPanel>
  </StackPanel>
</Grid>
TagsNo tags attached.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-03-11 14:16 Demond New Issue
2024-03-11 14:17 Demond Description Updated
2024-03-11 15:28 jsantos Assigned To => jsantos
2024-03-11 15:28 jsantos Status new => assigned
2024-03-11 15:28 jsantos Product Version 3.2.3 => 3.2.4
2024-03-27 11:03 sfernandez Assigned To jsantos => sfernandez
2024-03-27 11:03 sfernandez Status assigned => resolved
2024-03-27 11:03 sfernandez Resolution open => fixed
2024-03-27 11:03 sfernandez Product Version 3.2.4 => 3.2.3
2024-03-27 11:03 sfernandez Fixed in Version => 3.2.4
2024-03-27 11:03 sfernandez Target Version => 3.2.4