From 3096a42a79d3f23fcb38e00e684bcfb2d80936d4 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Tue, 3 Dec 2024 20:50:43 -0600 Subject: [PATCH] Fix latency by using a sensible present mode --- bootstrap/bloat-buster/bb_core.c | 6 +++--- bootstrap/std/render.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap/bloat-buster/bb_core.c b/bootstrap/bloat-buster/bb_core.c index 4c777e5..279561e 100644 --- a/bootstrap/bloat-buster/bb_core.c +++ b/bootstrap/bloat-buster/bb_core.c @@ -177,9 +177,9 @@ void run_app() renderer_window_frame_begin(renderer, render_window); - u32 box_width = 10; - u32 box_height = 10; - auto box_color = Color4(1, 0, 0, 1); + u32 box_width = 100; + u32 box_height = 100; + auto box_color = Color4(1, 1, 1, 1); Vertex box_vertices[] = { { diff --git a/bootstrap/std/render.c b/bootstrap/std/render.c index 70a840c..17c8cbf 100644 --- a/bootstrap/std/render.c +++ b/bootstrap/std/render.c @@ -1444,7 +1444,7 @@ fn void swapchain_recreate(Renderer* renderer, RenderWindow* window, VkSurfaceCa .pQueueFamilyIndices = queue_family_indices, .preTransform = surface_capabilities.currentTransform, .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR, - .presentMode = VK_PRESENT_MODE_FIFO_KHR, + .presentMode = VK_PRESENT_MODE_MAILBOX_KHR, .clipped = 0, .oldSwapchain = window->swapchain, };