private void Draw() { switch (GS) { case eGS.Title: DrawTitle(); break; default: GS = eGS.Title; break; } ft = DateTime.Now - st; gb.DrawString(ft.TotalMilliseconds.ToString() + "ms", Font, Brushes.White, 0, 0); gb.DrawString(ft.TotalMilliseconds == 0 ? "Infinite" : (1000 / (int)ft.TotalMilliseconds).ToString() + " FPS", Font, Brushes.White, 0, 16); gb.DrawString(tfr.ToString(), Font, Brushes.White, 0, 32); gf.DrawImage(gi, 0, 0); }
private void Draw() { switch(GS) { case eGS.Title: DrawTitle(); break; default: GS = eGS.Title; break; } ft = DateTime.Now - st; gb.DrawString(ft.TotalMilliseconds.ToString() + "ms", Font, Brushes.White, 0, 0); gb.DrawString(ft.TotalMilliseconds == 0 ? "Infinite" : (1000 / (int)ft.TotalMilliseconds).ToString() + " FPS", Font, Brushes.White, 0, 16); gb.DrawString(tfr.ToString(), Font, Brushes.White, 0, 32); gf.DrawImage(gi, 0, 0); }