From 5ded9101522573336813c88d49e2ed27d70429fb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Fri, 20 Aug 2021 20:23:23 +0200 Subject: keep only HelloWorld, ShowCase and PerfTests samples --- Samples/PerfTests/Program.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Samples/PerfTests/Program.cs') 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 (); } } } -- cgit v1.3.1-4-g156e