SL5 Balder Performance suggestions

Sep 18, 2011 at 11:30 PM

I have just begun using Balder with SL5 and the first thing I did was see how many boxes I could render and still get 60 FPS.  After 200 boxes the FPS starts dropping below 60.  Are there any tips on how I can improve this?  The code I used is very simple.  Thanks.

  <Grid x:Name="LayoutRoot" Background="Blue">
        <Infrastructure:MyGame Width="800" Height="600">
                <View:Camera Position="0,50,-60" Target="0,0,0"/>
public class MyGame : Game
		public override void OnInitialize()
			Random rand = new Random();
			for (int i = 0; i < 200; i++)
				this.Children.Add(new Box() { Dimension = new Coordinate(2, 2, 2), 
					Position = new Coordinate(rand.Next(-50, 50), rand.Next(-50, 50), 1) });
Sep 19, 2011 at 10:58 PM

Are you using the binaries available on the site or have you compiled the latest in the MajorRefactoring branch?

The stuff thats in the MajorRefactoring branch has some serious performance boosts for SL5.

Sep 20, 2011 at 2:10 AM

I am using the binaries from the site.  Is the latest branch for SL5 RC?  If so I will have to wait a bit.  Currently RC does not think I have VS SP1 installed when in fact I do.

Sep 21, 2011 at 7:54 PM

Ahh.. Ok..   You'll get a lot of perf love from it when you can do that, plus tons of bug fixes, better materials and general rendering quality as well.