public InstancingDemo ()
{
// enable object tracking :
Parameters.TrackObjects = false;
Parameters.VSyncInterval = 1;
Parameters.MsaaLevel = 4;
Parameters.StereoMode = StereoMode.Disabled;
// add services :
AddService( new SpriteBatch( this ), false, false, 0, 0 );
AddService( new DebugStrings( this ), true, true, 9999, 9999 );
AddService( new DebugRender( this ), true, true, 9998, 9998 );
AddService( new Camera( this ), true, false, 1, 1 );
// load configuration :
LoadConfiguration();
// make configuration saved on exit
Exiting += InstancingDemo_Exiting;
// handle keys
InputDevice.KeyDown += InputDevice_KeyDown;
}