Understanding Batching and Rendering Performance
Posted: 28 May 2013, 21:29
Is there any documentation available that might allow better understanding of how the draw batching works with NoesisGUI? I'm building some simple UIs and the draw calls seem higher than I would expect.
For example, this basic layout with a single border text block generates 6 batches when zoomed in, and 4 when first loading the scene in XamlPlayer:
Any sort of best practices or tips for efficient rendering to keep in mind when developing UI?
For example, this basic layout with a single border text block generates 6 batches when zoomed in, and 4 when first loading the scene in XamlPlayer:
Code: Select all
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignWidth="960" d:DesignHeight="640"
mc:Ignorable="d" Background="Transparent">
<Grid.Resources>
<LinearGradientBrush x:Key="ButtonBrush" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#6A6D50" Offset="0" />
<GradientStop Color="#494C2F" Offset="1" />
</LinearGradientBrush>
</Grid.Resources>
<Border Background="{StaticResource ButtonBrush}" Width="200" Height="48" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Foreground="White" FontSize="20" FontWeight="Medium" Margin="28,12,28,0">BUTTON</TextBlock>
</Border>
</Grid>