diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-05 12:08:56 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-05 12:08:57 +0200 |
| commit | 4c15030701964aee1c1dc908d6fa4dcdbec16a12 (patch) | |
| tree | abc69bdd9cd0713d795a924d329b4466e31bbac6 /src/OpenTKGameWindow.cs | |
| parent | 8dcac53903c37878d54d59066eb7f80da1d62bc7 (diff) | |
threaded combo, Monodevelop addin improve
Diffstat (limited to 'src/OpenTKGameWindow.cs')
| -rwxr-xr-x | src/OpenTKGameWindow.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index ebe3735e..fc6f9916 100755 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -260,9 +260,19 @@ namespace go invGOList = invGOList.Reverse ().ToArray ();
//Debug.WriteLine ("======= Layouting queue start =======");
- while (Interface.LayoutingQueue.Count > 0) {
- LayoutingQueueItem lqi = Interface.LayoutingQueue.Dequeue ();
- lqi.ProcessLayouting ();
+ lock (Interface.LayoutingQueue) {
+ while (Interface.LayoutingQueue.Count > 0) {
+// 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());
+// }
+ }
}
//Debug.WriteLine ("otd:" + gobjsToRedraw.Count.ToString () + "-");
|