Skip to content

Commit

Permalink
Fixed imspinner speed being inconsistent between APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed Oct 27, 2024
1 parent 9d414d8 commit 2aaafc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Framework/Renderer/WebGPU/WebGPURenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void UImGui::WebGPURenderer::createSwapchain() noexcept
.format = preferredFormat,
.width = swapchainWidth,
.height = swapchainHeight,
.presentMode = WGPUPresentMode_Fifo,
.presentMode = WGPUPresentMode_Fifo, // TODO: Add V-Sync handling when WebGPU allows us to do that
};

swapchain = wgpuDeviceCreateSwapChain(device, surface, &swapchainDescriptor);
Expand Down
1 change: 1 addition & 0 deletions Framework/Renderer/Window/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ void UImGui::WindowInternal::createWindow() noexcept
#endif
ULOG_LOG_TYPE_SUCCESS, GLAD_VERSION_MAJOR(version), ".", GLAD_VERSION_MINOR(version));
#endif
glfwSwapInterval(Renderer::data().bUsingVSync);
glEnable(GL_MULTISAMPLE);
glEnable(GL_DEPTH_TEST);
// Set viewport and global pointer to use in callbacks
Expand Down

0 comments on commit 2aaafc8

Please sign in to comment.