more startup profiling, removal of irrelevant calls and zeroing in textures_cache_init()

This commit is contained in:
veclavtalica
2025-01-15 05:39:18 +03:00
parent 0da1e413aa
commit f0dfd5627a
2 changed files with 21 additions and 17 deletions

View File

@ -307,10 +307,9 @@ void textures_cache_init(TextureCache *cache, SDL_Window *window) {
cache->window = window;
sh_new_arena(cache->hash);
cache->node_buffer = SDL_calloc(ctx.texture_atlas_size, sizeof *cache->node_buffer);
cache->node_buffer = SDL_malloc(ctx.texture_atlas_size * sizeof *cache->node_buffer);
add_new_atlas(cache);
recreate_current_atlas_texture(cache);
}