diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-11 12:50:46 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-11 12:50:46 +0100 |
| commit | 0f8a64797810a03d036d7c9fcfddc5e11733f719 (patch) | |
| tree | c2f072afc57f15800c0871e32760f5eb340dc656 /UnitTest/NUnitCrowWindow.cs | |
| parent | f2ceefa2a288ef3477a995e0f7f223c62bb3d6ad (diff) | |
IsQueuedForRedraw boolean in each GO, to prevent searching in object list
Move lastPaintedSlot update to Paint instead of UpdateGraphic which is not called if GO isn't cached
Diffstat (limited to 'UnitTest/NUnitCrowWindow.cs')
| -rw-r--r-- | UnitTest/NUnitCrowWindow.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/UnitTest/NUnitCrowWindow.cs b/UnitTest/NUnitCrowWindow.cs index f0879dd9..95a28f01 100644 --- a/UnitTest/NUnitCrowWindow.cs +++ b/UnitTest/NUnitCrowWindow.cs @@ -165,6 +165,7 @@ namespace Crow gobjsToRedraw.CopyTo (gotr); gobjsToRedraw.Clear (); foreach (GraphicObject p in gotr) { + p.IsQueuedForRedraw = false; p.registerClipRect (); } @@ -206,11 +207,12 @@ namespace Crow updateTime.Stop (); ctx.Dispose (); - sw.WriteLine ("{3}\t{0,8}\t{1,8}\t{2,8}", + sw.WriteLine ("{0}\t{1,8}\t{2,8}\t{3,8}\t{4,8}", + testId, layoutTime.ElapsedTicks, guTime.ElapsedTicks, updateTime.ElapsedTicks, - testId); + loadTime.ElapsedTicks); sw.Flush (); // Console.WriteLine("{3} => layout:{0}ms\tdraw{1}ms\tupdate:{2}ms", @@ -224,10 +226,13 @@ namespace Crow #endregion #region loading + public Stopwatch loadTime = new Stopwatch (); public GraphicObject LoadTest (string id) { testId = id; + loadTime.Start (); GraphicObject tmp = Interface.Load ("Interfaces/" + testId + ".crow", this); + loadTime.Stop (); AddWidget (tmp); return tmp; } @@ -255,8 +260,8 @@ namespace Crow sw = new StreamWriter (path); - sw.WriteLine ("ID layout draw update"); - sw.WriteLine ("------------------------------------------------"); + sw.WriteLine ("ID layout draw update load"); + sw.WriteLine ("----------------------------------------------------------------"); sw.Flush (); } ~NUnitCrowWindow(){ |