messing around with testing using keyword in proc args (with new debug support)
This commit is contained in:
1
code/sectr/engine/config.odin
Normal file
1
code/sectr/engine/config.odin
Normal file
@ -0,0 +1 @@
|
||||
package sectr
|
@ -20,10 +20,10 @@ Job :: struct {
|
||||
next: ^Job,
|
||||
cb: JobProc,
|
||||
data: rawptr,
|
||||
// scratch: ^CArena,
|
||||
group: ^JobGroup,
|
||||
ignored: IgnoredThreads,
|
||||
dbg_lbl: string,
|
||||
// scratch: CArena,
|
||||
}
|
||||
|
||||
JobList :: struct {
|
||||
@ -43,7 +43,7 @@ JobSystemContext :: struct {
|
||||
ThreadWorkerContext :: struct {
|
||||
system_ctx: Thread,
|
||||
index: int,
|
||||
}
|
||||
}
|
||||
|
||||
WorkerID :: enum u32 {
|
||||
Master_Prepper = 0,
|
||||
|
@ -1,3 +0,0 @@
|
||||
package sectr
|
||||
|
||||
|
@ -40,7 +40,7 @@ Memory :: struct {
|
||||
|
||||
state : ^State,
|
||||
|
||||
replay : ReplayState,
|
||||
replay : ReplayState, // TODO(Ed): Were not doing it this way.
|
||||
logger : Logger,
|
||||
profiler : ^SpallProfiler
|
||||
}
|
||||
@ -182,7 +182,7 @@ State :: struct {
|
||||
transient_clear_time : f32, // Time in seconds for the usual period to clear transient
|
||||
transient_clear_elapsed : f32, // Time since last clear
|
||||
|
||||
job_system : JobSystemContext,
|
||||
job_system : ^JobSystemContext,
|
||||
|
||||
string_cache : StringCache,
|
||||
|
||||
|
@ -69,14 +69,14 @@ append_staged_input_events :: #force_inline proc( event : InputEvent ) {
|
||||
append( & state.staged_input_events, event )
|
||||
}
|
||||
|
||||
pull_staged_input_events :: proc( input : ^InputState, input_events : ^InputEvents, staged_events : Array(InputEvent) )
|
||||
pull_staged_input_events :: proc( input : ^InputState, using input_events : ^InputEvents, using staged_events : Array(InputEvent) )
|
||||
{
|
||||
// TODO(Ed) : Add guards for multi-threading
|
||||
|
||||
staged_events_slice := array_to_slice(staged_events)
|
||||
push( & input_events.events, staged_events_slice )
|
||||
|
||||
using input_events
|
||||
// using input_events
|
||||
|
||||
for event in staged_events_slice
|
||||
{
|
||||
|
Reference in New Issue
Block a user