public void Redraw(Graphics gr) { long tm1 = DateTime.Now.Millisecond; gr.Clear(bg); Render.SetOffset(actor.Pos); Render.DrawAll(gr); Inform.Draw(gr); #if DEBUG gr.DrawString(string.Format("pos: {0}, spd: {1}\n time: {2}", actor.Pos.ToString(), actor.Speed, DateTime.Now.Millisecond - tm1), new Font(FontFamily.GenericSansSerif, 16), Brushes.White, new PointF(0, 16)); #endif }