summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 13:54:35 +1100
committerquou <quou@disroot.org>2024-12-29 13:55:35 +1100
commitf107689be915d96363ea75889631939c62f07980 (patch)
treea4b54d5145f12ee946dd24c18e6f6d5225a4d997 /c2.cpp
parent928eba3845d6017d133048cf04c1f816d87941b0 (diff)
cache assets to avoid loading them more than once
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c2.cpp b/c2.cpp
index 29f3955..d3b414b 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -102,7 +102,7 @@ extern "C" int entrypoint() {
arena_alloc(app->arena, ui_arena_size),
ui_arena_size
);
- assets.init(&asset_arena, "pack");
+ assets.init(&asset_arena, "pack", 128);
dev = Device::create(&video_arena, app);
model_loader.init(dev, &assets);
register_asset_loader("MODL", &model_loader);