replace per-tick allocations in push_text with an arena/bump allocator

This commit is contained in:
wanp committed 2024-09-27 15:02:24 -03:00
1 parent 0481962859
commit 078e68387b
5 files changed
+101 -26

No files matched your search

+2 -7
View File
@@ -37,13 +37,8 @@ static void title_tick(State *state) {
},
(Color) { 0, 0, 0, 255 }
);
push_text(
text_str,
(Vec2){ 0, 0 },
text_h,
(Color) { 255, 255, 255, 255 },
font
);
push_text(text_str, (Vec2){ 0, 0 }, text_h, (Color) { 255, 255, 255, 255 }, font);
free(text_str);
}