wip model loading + workers
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user