From 0a0c269dc9d0c72e96439d99488aadd493e8e6de Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 12 Jun 2023 09:59:18 -0700 Subject: [PATCH] remove unnecessary Wait calls from examples --- BasicStencil/BasicStencilGame.cs | 1 - CompressedTextures/CompressedTexturesGame.cs | 1 - ComputeUniforms/ComputeUniformsGame.cs | 1 - CullFace/CullFaceGame.cs | 1 - DepthMSAA/DepthMSAAGame.cs | 1 - DrawIndirect/DrawIndirectGame.cs | 1 - InstancingAndOffsets/InstancingAndOffsetsGame.cs | 2 -- MSAA/MSAAGame.cs | 1 - TriangleVertexBuffer/TriangleVertexBufferGame.cs | 1 - VideoPlayer/VideoPlayerGame.cs | 1 - 10 files changed, 11 deletions(-) diff --git a/BasicStencil/BasicStencilGame.cs b/BasicStencil/BasicStencilGame.cs index 25aba74..e902d46 100644 --- a/BasicStencil/BasicStencilGame.cs +++ b/BasicStencil/BasicStencilGame.cs @@ -77,7 +77,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) { } diff --git a/CompressedTextures/CompressedTexturesGame.cs b/CompressedTextures/CompressedTexturesGame.cs index 9fe91b4..e66ceea 100644 --- a/CompressedTextures/CompressedTexturesGame.cs +++ b/CompressedTextures/CompressedTexturesGame.cs @@ -77,7 +77,6 @@ namespace MoonWorks.Test textures[i] = Texture.LoadDDS(GraphicsDevice, cmdbuf, fs); } GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) diff --git a/ComputeUniforms/ComputeUniformsGame.cs b/ComputeUniforms/ComputeUniformsGame.cs index a3204c6..6d43e6c 100644 --- a/ComputeUniforms/ComputeUniformsGame.cs +++ b/ComputeUniforms/ComputeUniformsGame.cs @@ -100,7 +100,6 @@ namespace MoonWorks.Test cmdbuf.DispatchCompute(gradientUniforms.groupCountX, gradientUniforms.groupCountY, 1, offset); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) { } diff --git a/CullFace/CullFaceGame.cs b/CullFace/CullFaceGame.cs index 3d8bf03..0504b70 100644 --- a/CullFace/CullFaceGame.cs +++ b/CullFace/CullFaceGame.cs @@ -75,7 +75,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) diff --git a/DepthMSAA/DepthMSAAGame.cs b/DepthMSAA/DepthMSAAGame.cs index 15d93ca..a5417c6 100644 --- a/DepthMSAA/DepthMSAAGame.cs +++ b/DepthMSAA/DepthMSAAGame.cs @@ -195,7 +195,6 @@ namespace MoonWorks.Test ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) diff --git a/DrawIndirect/DrawIndirectGame.cs b/DrawIndirect/DrawIndirectGame.cs index 9979b51..df41be6 100644 --- a/DrawIndirect/DrawIndirectGame.cs +++ b/DrawIndirect/DrawIndirectGame.cs @@ -53,7 +53,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) { } diff --git a/InstancingAndOffsets/InstancingAndOffsetsGame.cs b/InstancingAndOffsets/InstancingAndOffsetsGame.cs index 92a939c..abff15a 100644 --- a/InstancingAndOffsets/InstancingAndOffsetsGame.cs +++ b/InstancingAndOffsets/InstancingAndOffsetsGame.cs @@ -61,7 +61,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) @@ -105,4 +104,3 @@ namespace MoonWorks.Test } } } - diff --git a/MSAA/MSAAGame.cs b/MSAA/MSAAGame.cs index 42e09ba..c64797e 100644 --- a/MSAA/MSAAGame.cs +++ b/MSAA/MSAAGame.cs @@ -90,7 +90,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) diff --git a/TriangleVertexBuffer/TriangleVertexBufferGame.cs b/TriangleVertexBuffer/TriangleVertexBufferGame.cs index 9896ac2..c1cd6a4 100644 --- a/TriangleVertexBuffer/TriangleVertexBufferGame.cs +++ b/TriangleVertexBuffer/TriangleVertexBufferGame.cs @@ -38,7 +38,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); } protected override void Update(System.TimeSpan delta) { } diff --git a/VideoPlayer/VideoPlayerGame.cs b/VideoPlayer/VideoPlayerGame.cs index 4b51ad6..82c8224 100644 --- a/VideoPlayer/VideoPlayerGame.cs +++ b/VideoPlayer/VideoPlayerGame.cs @@ -57,7 +57,6 @@ namespace MoonWorks.Test } ); GraphicsDevice.Submit(cmdbuf); - GraphicsDevice.Wait(); // Load the video video = new Video.VideoAV1(TestUtils.GetVideoPath("hello.obu"), 25);