progressbar

This commit is contained in:
onezplpl 2024-07-14 12:00:31 -04:00
parent ea3409d367
commit d112930c5c
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ void *gen_chunk(void *args) {
Chunk chunk = Chunk chunk =
fetch_chunk(x2 / CHUNK_LENGTH, y2 / CHUNK_LENGTH, z2 / CHUNK_LENGTH, a); fetch_chunk(x2 / CHUNK_LENGTH, y2 / CHUNK_LENGTH, z2 / CHUNK_LENGTH, a);
//printf("progress on this thread (%i / %i)\n", a2, CHUNK_ALL); printf("Loading world... (%i / %i)\n", a2, CHUNK_ALL);
if (i > CBLOCK_ALL * 18) if (i > CBLOCK_ALL * 18)
return (void *)i; return (void *)i;

2
main.c
View file

@ -236,7 +236,7 @@ int main(void) {
} }
frames = glfwGetTime(); frames = glfwGetTime();
printf("%f\n", frames); //printf("%f\n", frames);
glfwSwapBuffers(window); glfwSwapBuffers(window);
glfwPollEvents(); glfwPollEvents();