aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/OpenTKGameWindow.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-06 07:11:22 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-06 07:11:22 +0100
commit643d44f381962d6814d3676cee322c41018406eb (patch)
tree313429713063c06ec57e675682e7a6c176e62e22 /src/OpenTKGameWindow.cs
parent27c400b4aa2195ee0ea17af803919ae677b9fff7 (diff)
2 step, 1=> Simple Register, 2=> Enqueue with priority checking
Diffstat (limited to 'src/OpenTKGameWindow.cs')
-rw-r--r--src/OpenTKGameWindow.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs
index 89df8ee4..23d3e814 100644
--- a/src/OpenTKGameWindow.cs
+++ b/src/OpenTKGameWindow.cs
@@ -261,18 +261,18 @@ namespace Crow
#endif
//Debug.WriteLine ("======= Layouting queue start =======");
+ while (Interface.RegisteredGOForLayouting.Count > 0){
+ while (Interface.RegisteredGOForLayouting.Count > 0){
+ GraphicObject go = Interface.RegisteredGOForLayouting.Dequeue ();
+ go.EnqueueForLayouting ();
+ go.RegisteredLayoutings = LayoutingType.None;
+ }
while (Interface.LayoutingQueue.First != null) {
-// Stopwatch lqiProcTime = new Stopwatch ();
-// lqiProcTime.Start ();
LayoutingQueueItem lqi = Interface.LayoutingQueue.Dequeue ();
lqi.ProcessLayouting ();
-// lqiProcTime.Stop ();
-// if (lqiProcTime.ElapsedMilliseconds > 10) {
-// Debug.WriteLine("lqi {2}: {0} ticks \t, {1} ms",
-// updateTime.ElapsedTicks,
-// updateTime.ElapsedMilliseconds, lqi.ToString());
-// }
}
+ }
+
#if MEASURE_TIME
layoutTime.Stop ();
#endif