public SurfaceRenderer(OutputHandler outputHandler, int screenWidth, int screenHeight, bool mesureTime = true) { OutputHandler = outputHandler; OutputHandler.Enable(); this.screenWidth = screenWidth; this.screenHeight = screenHeight; surface = new ISurfaceItem[screenWidth, screenHeight]; surfaceSet = new bool[screenWidth, screenHeight]; if (mesureTime) { clcStopwatch = new Stopwatch(); relStopwatch = new Stopwatch(); wrtStopwatch = new Stopwatch(); glbStopwatch = new Stopwatch(); } }