diff options
Diffstat (limited to 'Samples/PerfTests/Program.cs')
| -rw-r--r-- | Samples/PerfTests/Program.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Samples/PerfTests/Program.cs b/Samples/PerfTests/Program.cs index dddf30ba..fabf4b45 100644 --- a/Samples/PerfTests/Program.cs +++ b/Samples/PerfTests/Program.cs @@ -161,10 +161,15 @@ namespace PerfTests writer.WriteLine ("Path;MinEllapsed;MaxEllapsed;MeanEllapsed;MedianEllapsed;sigmaEllapsed;MinMem;MaxMem;MeanMem;MedianMem;sigmaMem;MinAlloc;MaxAlloc;MeanAlloc;MedianAlloc;sigmaAlloc"); } - if (screenOutput) + if (screenOutput) { + initBackend (); initSurface (); - else - surf = CreateSurface (ClientRectangle.Width, ClientRectangle.Height); + } else { + SolidBackground = false; + initBackend (true); + + CreateMainSurface (ref clientRectangle); + } initDictionaries (); loadStyling (); @@ -519,7 +524,10 @@ namespace PerfTests else iface.PerformTests (); } - } catch (Exception) { + } catch (Exception e) { + Console.ForegroundColor = ConsoleColor.DarkRed; + Console.WriteLine (e); + Console.ResetColor (); } } } |