Using MonoGame for an application and I am getting massive frame rate drops every 4 or 5 seconds.
As usual this seems to be the C# garbage collector.
So I did some testing and found that my code was creating 0 garbage.
Yes I know that's rubbish, but I looked at it in detail and apart from a few strings, it is correct.
When I looked in more detail I found that the problem is rasteriser states. This paste is not going to be pretty, but it has a lot of information.
Anybody have any quick fixes for this?
Type Count Count Diff. Size (Bytes) Total Size Diff. Inclusive Size Inclusive Size Diff. Module
WeakReference 17,348 +14,203 416,352 +340,872 416,352 +340,872 mscorlib.dll
Microsoft.Xna.Framework.Graphics.RasterizerState 16,899 +14,203 1,487,112 +1,249,864 1,487,472
SharpDX.Direct3D11.RasterizerState 16,894 +14,203 1,081,216 +908,992 1,081,216 +908,992 SharpDX.Direct3D11.dll