From f4af29cec90bec36c9ab61ccf9bce1cd7ab58da9 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 29 Oct 2024 16:43:46 -0600 Subject: [PATCH] Updated main test loop --- client/src/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 8b93d28..6401dcf 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -189,7 +189,7 @@ VkResult main_thread(ClientContext* context) { // double last_draw = 0; - double draw_interval = 1; + double draw_interval = 0.25; uint32_t* mapped_codes = context->ui.containers[0].layers[0].codes_buffer; GPUString* mapped_string = context->ui.containers[0].layers[0].strings_buffer; char str[11] = "1234567890"; @@ -208,9 +208,7 @@ VkResult main_thread(ClientContext* context) { glfwPollEvents(); double frame_time = glfwGetTime(); - // Very odd, but must be a clue, adding transfers when current_frame == 0 consistently causes - // the rendering glitch, and current_frame == 1 has no rendering glitch - if((frame_time - last_draw) > draw_interval && context->render.current_frame == 1) { + if((frame_time - last_draw) > draw_interval) { test = (test + 1) % 7; mapped_string->length = test; @@ -223,7 +221,6 @@ VkResult main_thread(ClientContext* context) { sizeof(uint32_t), &context->render)); - fprintf(stderr, "Added transfers for %d\n", test); } //