hot reload works with tick lanes and job worker loops!
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package grime
|
||||
|
||||
//region STATIC MEMORY
|
||||
static_memory: StaticMemory
|
||||
@thread_local thread_memory: ThreadMemory
|
||||
grime_memory: StaticMemory
|
||||
@thread_local grime_thread: ThreadMemory
|
||||
//endregion STATIC MEMORY
|
||||
|
||||
StaticMemory :: struct {
|
||||
|
||||
Reference in New Issue
Block a user