|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|