DrawingPerformanceTests DrawImagesWithOneMillionPolygonsPerFrame Method Delta Engine Documentation
Draws 100*100 small images (=10000 images =20000 polygons) 50 times a frame to reach 1 million polygons drawn per frame. Can reach 100fps or more, which means 100 million polygons per second. View code on GitHub

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DrawImagesWithOneMillionPolygonsPerFrame()
Examples

/// <summary> 
/// Draws 100*100 small images (=10000 images =20000 polygons) 50 times a frame to reach 1 million 
/// polygons drawn per frame. Can reach 100fps or more, which means 100 million polygons per second. 
/// </summary>
[Test, Category("Slow")]
public void DrawImagesWithOneMillionPolygonsPerFrame()
{
    var verticesAndIndices = CreateVerticesAndIndices();
    verticesAndIndices.OnDraw<RenderOneMillionPolygons>();
}
See Also