Do silverlight support double buffering and vsync?
I am a beginner to silverlight, I tried to make a little ticker animation which translate textblock from left to right with silverlight. The performance is not very good at all. I think the problem is related to double buffering and vsync.
Yes, we do double buffer. Whether you get vtrace tearing depends on the OS you are running on.
What browser and platform are you running on? Something as simple as translating a textblock should run at very high framerates.
Some gotcha's to watch out for:
1. set windowless=false on the control (fastest mode and less tearing)
2. make sure the background is not transparent
- Ashraf Michail
Even the control is set windowless: 'false', the textblock does not move smoothly. I wonder how can I create a smooth ticker
The textblock I have made is
<TextBlock x:Name="text" Canvas.Top="0" Canvas.Left="0" Width="450" Height="100" FontSize="72" Text="TextBlock" TextWrapping="Wrap">
<TranslateTransform x:Name="AnimatedRotateTransform" X="0" Y="0"/>
<!-- Animates the rectangle's opacity. -->
From="1024" To="-450" Duration="0:0:5"
AutoReverse="False" RepeatBehavior="Forever" />
This thread seems to have stalled with no resolution.
Vsync seems to be an ongoing issue for a number of people using Silverlight. The issue is not limited to the poster above - Netflix for instance has page tearing issues now that it uses Silverlight.
How can developers and users prevent page tearing?