Enable rendering
This commit is contained in:
parent
cadba71330
commit
cdb02bd209
4
dod.c
4
dod.c
@ -92,7 +92,7 @@ int main(void) {
|
||||
|
||||
SetTraceLogLevel(LOG_NONE);
|
||||
InitWindow(WIDTH, HEIGHT, "DOD test");
|
||||
// SetTargetFPS(target_fps);
|
||||
SetTargetFPS(target_fps);
|
||||
|
||||
Allocator arena = wapp_mem_arena_allocator_init(MB(20));
|
||||
assert(!wapp_mem_allocator_invalid(&arena));
|
||||
@ -134,7 +134,7 @@ int main(void) {
|
||||
|
||||
ClearBackground(BG_COLOR);
|
||||
|
||||
// render_entities(manager.tags, manager.rects, manager.count);
|
||||
render_entities(manager.tags, manager.rects, manager.count);
|
||||
|
||||
DrawFPS(10, 10);
|
||||
|
||||
|
16
no_dod.c
16
no_dod.c
@ -50,7 +50,7 @@ f32 get_random_float(XOR256State *state);
|
||||
int main(void) {
|
||||
SetTraceLogLevel(LOG_NONE);
|
||||
InitWindow(WIDTH, HEIGHT, "No-DOD test");
|
||||
// SetTargetFPS(120);
|
||||
SetTargetFPS(120);
|
||||
|
||||
Allocator arena = wapp_mem_arena_allocator_init(MB(20));
|
||||
XOR256State state = wapp_prng_xorshift_init_state();
|
||||
@ -84,13 +84,13 @@ int main(void) {
|
||||
|
||||
ClearBackground(BG_COLOR);
|
||||
|
||||
// for (u64 i = 0; i < ZONE_COUNT; ++i) {
|
||||
// render_slow_zone(&(zones[i]));
|
||||
// }
|
||||
//
|
||||
// for (u64 i = 0; i < WANDERER_COUNT; ++i) {
|
||||
// render_wanderer(&(wanderers[i]));
|
||||
// }
|
||||
for (u64 i = 0; i < ZONE_COUNT; ++i) {
|
||||
render_slow_zone(&(zones[i]));
|
||||
}
|
||||
|
||||
for (u64 i = 0; i < WANDERER_COUNT; ++i) {
|
||||
render_wanderer(&(wanderers[i]));
|
||||
}
|
||||
|
||||
DrawFPS(10, 10);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user