replace per-tick allocations in push_text with an arena/bump allocator
This commit is contained in:
1 parent
0481962859
commit
078e68387b
5 files changed
+101
-26
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user