private async Task DoWorkAsyncInfiniteLoop(D3D12Pipeline pipeline) { while (true) { // do the work in the loop pipeline.Update(); // update the UI pipeline.Render(); // don't run again for at least 200 milliseconds await Task.Delay(30); } }
private async Task DoWorkAsyncInfiniteLoop(D3D12Pipeline pipeline) { while (true) { // do the work in the loop pipeline.Update(); // update the UI pipeline.Render(); // don't run again for at least 200 milliseconds await Task.Delay(30); } }