fixed hot reload

there is still memory issues T-T
This commit is contained in:
2024-03-20 01:23:50 -04:00
parent 2d5e308046
commit fb1a6063a7
5 changed files with 26 additions and 20 deletions

View File

@ -243,7 +243,6 @@ sync_sectr_api :: proc( sectr_api : ^sectr.ModuleAPI, memory : ^ClientMemory, lo
}
}
fmt_backing : [16 * Kilobyte] u8
persistent_backing : [2 * Megabyte] byte
@ -326,16 +325,16 @@ main :: proc()
{
spall.SCOPED_EVENT( & profiler.ctx, & profiler.buffer, "Host Tick" )
// Hot-Reload
sync_sectr_api( & sectr_api, & memory, & logger, & profiler )
running = sectr_api.tick( duration_seconds( delta_ns ), delta_ns )
sectr_api.clean_frame()
delta_ns = time.tick_lap_time( & host_tick )
host_tick = time.tick_now()
// free_all( arena_allocator( & state.transient))
free_all( arena_allocator( & state.transient))
// Hot-Reload
sync_sectr_api( & sectr_api, & memory, & logger, & profiler )
}
// Determine how the run_cyle completed, if it failed due to an error,