diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-29 23:26:46 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-29 23:26:46 +0100 |
| commit | dc603ff31253879bb8effb6d529f266ff78e9f3e (patch) | |
| tree | e48f38ac22040da95371f661be482389b21e473e /src/LayoutingQueueItem.cs | |
| parent | 1a4fe8bd37ed4a3e3324a134df4f90c14b315918 (diff) | |
| parent | 2ec4eeed1d0353c455719aa612a12646ae2d176e (diff) | |
Merge improvements and debug from 'CrowIDE' branch
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 95bc6bb7..c7ae3024 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -83,6 +83,7 @@ namespace Crow LQITime = new Stopwatch(); Slot = Rectangle.Empty; NewSlot = Rectangle.Empty; + Debug.WriteLine ("\tRegister => " + this.ToString ()); #endif } #endregion @@ -100,13 +101,20 @@ namespace Crow } #if DEBUG_LAYOUTING LQITime.Start(); + Debug.WriteLine ("=> " + this.ToString ()); #endif LayoutingTries++; if (!Layoutable.UpdateLayout (LayoutType)) { + #if DEBUG_LAYOUTING + Debug.WriteLine ("\t\tRequeued"); + #endif if (LayoutingTries < Interface.MaxLayoutingTries) { Layoutable.RegisteredLayoutings |= LayoutType; (Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this); } else if (DiscardCount < Interface.MaxDiscardCount) { + #if DEBUG_LAYOUTING + Debug.WriteLine ("\t\tDiscarded"); + #endif LayoutingTries = 0; DiscardCount++; Layoutable.RegisteredLayoutings |= LayoutType; |