wip model loading + workers

This commit is contained in:
veclavtalica
2025-02-07 10:19:36 +03:00
parent cb88b4bcc5
commit 7040d6f218
12 changed files with 1881 additions and 2 deletions

View File

@ -7,6 +7,7 @@
#include "twn_game_object_c.h"
#include "twn_textures_c.h"
#include "twn_timer_c.h"
#include "twn_workers_c.h"
#include <SDL2/SDL.h>
#include <physfs.h>
@ -724,7 +725,7 @@ static void clean_up(void) {
toml_free(ctx.config_table);
PHYSFS_deinit();
workers_deinit();
SDL_free(ctx.base_dir);
SDL_free(ctx.title);
SDL_GL_DeleteContext(ctx.gl_context);
@ -861,6 +862,7 @@ int enter_loop(int argc, char **argv) {
ctx.game.initialization_needed = true;
SDL_InitSubSystem(SDL_INIT_EVENTS);
workers_init(SDL_GetCPUCount());
profile_end("startup");