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

This commit is contained in:
2024-09-27 15:02:24 -03:00
parent 0481962859
commit 078e68387b
5 changed files with 101 additions and 26 deletions

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);
}