/// <summary> /// Draw debug text info /// </summary> public override void Draw(TimeSpan frameStepTime) { // Draw debug text long totalMemory = GC.GetTotalMemory(false); spriteBatch.Begin( SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, RasterizerState.CullCounterClockwise ); textItem.Begin(); textItem.DrawText(CPUItems[0]); textItem.SetDecimal(0).DrawText("Vertices: ", null, debugStats.vertexCount); textItem.DrawText("Memory: ", "KB", (int)(totalMemory / 1024)); textItem.DrawText("Chunks added, loaded: ", null, debugStats.chunksAdded, debugStats.chunksLoaded); textItem.SetDecimal(4).DrawText("Camera pos: ", null, debugStats.cameraPos.X, debugStats.cameraPos.Y, debugStats.cameraPos.Z); textItem.DrawText("Player pos: ", null, debugStats.playerPos.X, debugStats.playerPos.Y, debugStats.playerPos.Z); textItem.DrawText("Time of Day: ", null, debugStats.timeOfDay * 24f); spriteBatch.End(); base.Draw(frameStepTime); }