Max number of offscreen surfaces reached
Posted: 25 Jun 2025, 09:59
I have an crash that comes from Noesis, because of error "Max number of offscreen surfaces reached". It looks that when I'm creating Style with DropShadowEffect Noesis creates 21 render targets. With other stuff it sums to offscreen number limit.
Here's a sample effect that introduces a lot of render targets (21 ! SIC!):
Here's list of these 21 render targets that Noesis creates, and as I checked it is not used (apart L0 and L1):
I know that there are also Offscreen0 and Offscreen1 render targets. My new widget wants to create at least one new render target, so it sums up to 24 render targets. Do you know what is the limit? Is that 24? Or maybe I can force Noesis to not create not needed render targets?
Here's a sample effect that introduces a lot of render targets (21 ! SIC!):
Code: Select all
<Style x:Key="BracketPartStyle" TargetType="Rectangle">
<Setter Property="Opacity" Value="0.5" />
<Setter Property="Fill" Value="#E7DED5" />
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#E7DED5"
BlurRadius="10"
ShadowDepth="0"
Opacity="0.8" />
</Setter.Value>
</Setter>
</Style>- Pyramid_Down_L0
- Pyramid_Up_L0
- Pyramid_Down_L1
- Pyramid_Up_L1
- Pyramid_Down_L2
- Pyramid_Up_L2
- Pyramid_Down_L3
- Pyramid_Up_L3
- Pyramid_Down_L4
- Pyramid_Up_L4
- Pyramid_Down_L5
- Pyramid_Up_L5
- Pyramid_Down_L6
- Pyramid_Up_L6
- Pyramid_Down_L7
- Pyramid_Up_L7
- Pyramid_Down_L8
- Pyramid_Up_L8
- Pyramid_Down_L9
- Pyramid_Up_L9
- Pyramid_Down_L10
I know that there are also Offscreen0 and Offscreen1 render targets. My new widget wants to create at least one new render target, so it sums up to 24 render targets. Do you know what is the limit? Is that 24? Or maybe I can force Noesis to not create not needed render targets?