hot reload works with tick lanes and job worker loops!

This commit is contained in:
2025-10-15 00:44:14 -04:00
parent ed6a79fd78
commit 9f75d080a7
6 changed files with 109 additions and 62 deletions

View File

@@ -7,24 +7,24 @@ This is just a snippet file, do not use directly.
*/
set_profiler_module_context :: #force_inline proc "contextless" (profiler : ^Spall_Context) {
sync_store(& static_memory.spall_context, profiler, .Release)
sync_store(& grime_memory.spall_context, profiler, .Release)
}
set_profiler_thread_buffer :: #force_inline proc "contextless" (buffer: ^Spall_Buffer) {
sync_store(& thread_memory.spall_buffer, buffer, .Release)
sync_store(& grime_thread.spall_buffer, buffer, .Release)
}
DISABLE_PROFILING :: true
@(deferred_none = profile_end, disabled = DISABLE_PROFILING)
profile :: #force_inline proc "contextless" ( name : string, loc := #caller_location ) {
spall._buffer_begin( static_memory.spall_context, thread_memory.spall_buffer, name, "", loc )
spall._buffer_begin( grime_memory.spall_context, grime_thread.spall_buffer, name, "", loc )
}
@(disabled = DISABLE_PROFILING)
profile_begin :: #force_inline proc "contextless" ( name : string, loc := #caller_location ) {
spall._buffer_begin( static_memory.spall_context, thread_memory.spall_buffer, name, "", loc )
spall._buffer_begin( grime_memory.spall_context, grime_thread.spall_buffer, name, "", loc )
}
@(disabled = DISABLE_PROFILING)
profile_end :: #force_inline proc "contextless" () {
spall._buffer_end( static_memory.spall_context, thread_memory.spall_buffer)
spall._buffer_end( grime_memory.spall_context, grime_thread.spall_buffer)
}