I'm currently designing a 2D Game using a Game Engine I created and have decided to check how much memory I'm using for every second that passes.
I currently have a game screen that contains a total of 4097 game objects, each object contains at the very least, a sprite (bitmap) that is rendered to the screen each frame. Each sprite is a 32x32 pixel image.
The resulting MB I'm apparently using is roughly 1.10MB, is this too much, or am I doing okay? What other things should I take into consideration?
Also, just to show, this is how I'm checking the amount of memory I'm using:
double mb = MathHelper.ConvertBytesToMegabytes(GC.GetTotalMemory(true));
Console.WriteLine("Memory: " + mb);
and the "ConvertBytesToMegabytes" method:
public static double ConvertBytesToMegabytes(long bytes)
{
return (bytes / 1024f) / 1024f;
}