From 6f4a5e215c39a460110584552ba4d1436811a6a5 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 19 Jun 2024 05:51:34 -0400 Subject: [PATCH] prevent hot reload failure from lack of transient backing --- code/host/host.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/host/host.odin b/code/host/host.odin index b6fa708..1143ef2 100644 --- a/code/host/host.odin +++ b/code/host/host.odin @@ -169,6 +169,8 @@ load_sectr_api :: proc( version_id : i32 ) -> (loaded_module : sectr.ModuleAPI) return } + thread_sleep( Millisecond * 100 ) + live_file := Path_Sectr_Live_Module file_copy_sync( Path_Sectr_Module, live_file, allocator = context.temp_allocator ) @@ -249,7 +251,7 @@ sync_sectr_api :: proc( sectr_api : ^sectr.ModuleAPI, memory : ^ClientMemory, lo fmt_backing : [16 * Kilobyte] u8 persistent_backing : [2 * Megabyte] byte -transient_backing : [2 * Megabyte] byte +transient_backing : [32 * Megabyte] byte main :: proc() {