void interfaceThread() { while (CrowInterface.ClientRectangle.Size.Width == 0) { Thread.Sleep(5); } while (true) { CrowInterface.Update(); //Thread.Sleep (1); } }
void interfaceThread() { CrowInterface.Quit += Quit; CrowInterface.MouseCursorChanged += CrowInterface_MouseCursorChanged; while (CrowInterface.ClientRectangle.Size.Width == 0) { Thread.Sleep(5); } while (true) { CrowInterface.Update(); Thread.Sleep(1); } }
void crow_thread_func() { vkvgDev = new vkvg.Device(instance.Handle, phy.Handle, dev.VkDev.Handle, presentQueue.qFamIndex, vkvg.SampleCount.Sample_4, presentQueue.index); crow = new Interface(vkvgDev, (int)swapChain.Width, (int)swapChain.Height); isRunning = true; while (isRunning) { crow.Update(); Thread.Sleep(2); } dev.WaitIdle(); crow.Dispose(); vkvgDev.Dispose(); crow = null; }
public override void Update() { NotifyValueChanged("fps", fps); iFace.Update(); }