job refactor progress
This commit is contained in:
parent
63e1412752
commit
d8c46d9df6
145
log.txt
Normal file
145
log.txt
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
[11:51:18.682] |16888| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_material"
|
||||||
|
[11:51:18.683] |05964| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_shape"
|
||||||
|
[11:51:18.683] |29584| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_shade"
|
||||||
|
[11:51:18.684] |25484| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:18.685] |23760| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_flood"
|
||||||
|
[11:51:18.685] |26808| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_blit"
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_material" in 0.002 seconds
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_flood" in 0.001 seconds
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_shade" in 0.003 seconds
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_shape" in 0.001 seconds
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_ui" in 0.001 seconds
|
||||||
|
[11:51:18.687] |29620| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:427> Successfully compiled pipeline "kernel_blit" in 0.001 seconds
|
||||||
|
[11:51:18.723] |29584| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\asset_cache\asset_cache_core.c:132> Inserting asset cache entry for "font/fixedsys.ttf12.0_font"
|
||||||
|
[11:51:18.725] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:464> Loading sprite texture [f6ddd0f8a4758bce] "sprite/crosshair.ase"
|
||||||
|
[11:51:18.727] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\font\font_core.c:32> Loading font "font/fixedsys.ttf" (point size 12.000)
|
||||||
|
[11:51:18.730] |25484| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:893> Created player with id 54446c99 for sim client h0x1. is_master: 1
|
||||||
|
[11:51:18.733] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:515> Loaded sprite texture [f6ddd0f8a4758bce] "sprite/crosshair.ase" in 0.008 seconds (cache size: 20416 bytes).
|
||||||
|
[11:51:18.750] |25484| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:549> Loading sprite sheet [d2db500e4a9e79a6] "sprite/tim.ase"
|
||||||
|
[11:51:18.751] |25484| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:598> Loaded sprite sheet [d2db500e4a9e79a6] "sprite/tim.ase" in 0.001 seconds (cache size: 16320 bytes).
|
||||||
|
[11:51:18.751] |25484| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:549> Loading sprite sheet [b977d286fa3eb7c7] "sprite/gun.ase"
|
||||||
|
[11:51:18.751] |25484| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:598> Loaded sprite sheet [b977d286fa3eb7c7] "sprite/gun.ase" in 0.000 seconds (cache size: 16320 bytes).
|
||||||
|
[11:51:18.782] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:464> Loading sprite texture [69e272c667301980] "sprite/tim.ase"
|
||||||
|
[11:51:18.783] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:464> Loading sprite texture [acf325b34223e086] "sprite/gun.ase"
|
||||||
|
[11:51:18.787] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:515> Loaded sprite texture [69e272c667301980] "sprite/tim.ase" in 0.005 seconds (cache size: 32704 bytes).
|
||||||
|
[11:51:18.787] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:515> Loaded sprite texture [acf325b34223e086] "sprite/gun.ase" in 0.004 seconds (cache size: 35520 bytes).
|
||||||
|
[11:51:18.808] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\font\font_core.c:89> Loaded font "font/fixedsys.ttf" (point size 12.000) in 0.080 seconds
|
||||||
|
[11:51:19.391] |26808| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:19.412] |26808| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:549> Loading sprite sheet [c7595d812ab95147] "sprite/tile.ase"
|
||||||
|
[11:51:19.412] |26808| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:598> Loaded sprite sheet [c7595d812ab95147] "sprite/tile.ase" in 0.000 seconds (cache size: 16320 bytes).
|
||||||
|
[11:51:19.435] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:464> Loading sprite texture [f85f052a30eff918] "sprite/tile.ase"
|
||||||
|
[11:51:19.436] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\sprite\sprite_core.c:515> Loaded sprite texture [f85f052a30eff918] "sprite/tile.ase" in 0.002 seconds (cache size: 20416 bytes).
|
||||||
|
[11:51:19.850] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.109] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.150] |16888| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.170] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.210] |23760| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.249] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.270] |29584| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.310] |29584| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.329] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.370] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.410] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.450] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.470] |26808| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.509] |29584| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.530] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.570] |26808| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.610] |26808| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.649] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.670] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.710] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.729] |29584| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.769] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.790] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.850] |23760| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.869] |29620| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.910] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.930] |26808| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.970] |05964| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:20.990] |23760| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:21.030] |25484| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\pp\pp_step.c:1039> Spawn test 2
|
||||||
|
[11:51:30.609] |26348| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:30.609] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:30.611] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:30.623] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.012 seconds
|
||||||
|
[11:51:30.623] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.012 seconds
|
||||||
|
[11:51:30.623] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:30.796] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.172 seconds
|
||||||
|
[11:51:31.010] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.010] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.010] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.016] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.007 seconds
|
||||||
|
[11:51:31.016] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.005 seconds
|
||||||
|
[11:51:31.016] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.016] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:31.226] |26348| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.226] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.227] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.234] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.008 seconds
|
||||||
|
[11:51:31.234] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.005 seconds
|
||||||
|
[11:51:31.234] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.234] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:31.395] |26348| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.395] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.395] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.402] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.007 seconds
|
||||||
|
[11:51:31.402] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.007 seconds
|
||||||
|
[11:51:31.402] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.402] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:31.589] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.589] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.589] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.596] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.007 seconds
|
||||||
|
[11:51:31.596] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.006 seconds
|
||||||
|
[11:51:31.596] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.596] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:31.781] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.781] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.781] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.789] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.008 seconds
|
||||||
|
[11:51:31.789] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.007 seconds
|
||||||
|
[11:51:31.789] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.789] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:31.952] |26348| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:31.952] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:31.953] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:31.959] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.006 seconds
|
||||||
|
[11:51:31.959] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.006 seconds
|
||||||
|
[11:51:31.959] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:31.959] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:32.122] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:32.122] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:32.122] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:32.130] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.008 seconds
|
||||||
|
[11:51:32.130] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.005 seconds
|
||||||
|
[11:51:32.130] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:32.130] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:32.328] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:32.328] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:32.328] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:32.335] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.007 seconds
|
||||||
|
[11:51:32.335] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.007 seconds
|
||||||
|
[11:51:32.335] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:32.335] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:32.486] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:32.486] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:32.486] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:32.492] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.006 seconds
|
||||||
|
[11:51:32.492] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.005 seconds
|
||||||
|
[11:51:32.492] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:32.492] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:32.688] |26348| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:32.688] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:32.690] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:32.701] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.013 seconds
|
||||||
|
[11:51:32.701] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.008 seconds
|
||||||
|
[11:51:32.701] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:32.701] |26348| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
|
[11:51:32.871] |28868| [DEBUG] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1060> Change detected in shader source file "src/kernel/kernel_ui.rst", recompiling...
|
||||||
|
[11:51:32.871] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:vs"
|
||||||
|
[11:51:32.871] |26348| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:533> Compiling shader "src/kernel/kernel_ui.rst:ps"
|
||||||
|
[11:51:32.878] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:vs" in 0.007 seconds
|
||||||
|
[11:51:32.878] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1125> Finished compiling shader "src/kernel/kernel_ui.rst:ps" in 0.006 seconds
|
||||||
|
[11:51:32.878] |28868| [INFO] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:601> Loading pipeline "kernel_ui"
|
||||||
|
[11:51:32.878] |28868| [SUCCESS] <C:\Users\Jacob\Home\dev\repos\power_play\src\gpu\gpu_dx12.c:1182> Successfully compiled pipeline "kernel_ui" in 0.000 seconds
|
||||||
11
src/.vscode/settings.json
vendored
Normal file
11
src/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"*.rst": "hlsl",
|
||||||
|
"*.knl": "hlsl",
|
||||||
|
"mp3.h": "c",
|
||||||
|
"resource.h": "c",
|
||||||
|
"watch.h": "c",
|
||||||
|
"base.h": "c",
|
||||||
|
"tar.h": "c"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -171,6 +171,7 @@ void P_AppStartup(String args_str)
|
|||||||
g->write_path = InitializeAppWriteDirectory(g->arena, Lit(WRITE_DIR));
|
g->write_path = InitializeAppWriteDirectory(g->arena, Lit(WRITE_DIR));
|
||||||
|
|
||||||
/* Startup logging */
|
/* Startup logging */
|
||||||
|
#if 0
|
||||||
{
|
{
|
||||||
TempArena temp = BeginTempArena(scratch.arena);
|
TempArena temp = BeginTempArena(scratch.arena);
|
||||||
|
|
||||||
@ -186,6 +187,7 @@ void P_AppStartup(String args_str)
|
|||||||
for (AppArg *arg = args.first; arg; arg = arg->next) {
|
for (AppArg *arg = args.first; arg; arg = arg->next) {
|
||||||
P_LogInfoF("Parsed arg: key = \"%F\", value = \"%F\"", FmtString(arg->key), FmtString(arg->value));
|
P_LogInfoF("Parsed arg: key = \"%F\", value = \"%F\"", FmtString(arg->key), FmtString(arg->value));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Read window settings from file */
|
/* Read window settings from file */
|
||||||
@ -230,6 +232,7 @@ void P_AppStartup(String args_str)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Global systems */
|
/* Global systems */
|
||||||
RES_Startup();
|
RES_Startup();
|
||||||
W_Startup();
|
W_Startup();
|
||||||
@ -243,12 +246,11 @@ void P_AppStartup(String args_str)
|
|||||||
D_StartupReceipt draw_sr = D_Startup();
|
D_StartupReceipt draw_sr = D_Startup();
|
||||||
|
|
||||||
/* Interface systems */
|
/* Interface systems */
|
||||||
SimStartupReceipt sim_sr = SimStartup();
|
SimStartupReceipt sim_sr = StartupSim();
|
||||||
PB_StartupReceipt playback_sr = PB_Startup(&mixer_sr);
|
PB_StartupReceipt playback_sr = PB_Startup(&mixer_sr);
|
||||||
UserStartupReceipt user_sr = StartupUser(&sprite_sr, &draw_sr, &asset_cache_sr, &mixer_sr, &sim_sr, connect_address);
|
UserStartupReceipt user_sr = StartupUser(&sprite_sr, &draw_sr, &asset_cache_sr, &mixer_sr, &sim_sr, connect_address);
|
||||||
|
#endif
|
||||||
LAX user_sr;
|
PpMain();
|
||||||
LAX playback_sr;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Write window settings to file */
|
/* Write window settings to file */
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "ase.h"
|
#include "ase.h"
|
||||||
|
|
||||||
#include "ase_core.c"
|
#include "ase_core.c"
|
||||||
|
void ASE_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
ASE_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -3,7 +3,13 @@
|
|||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../bitbuff/bitbuff.h"
|
#include "../bitbuff/bitbuff.h"
|
||||||
|
inline void ASE_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
BB_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "ase_core.h"
|
#include "ase_core.h"
|
||||||
|
void ASE_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "asset_cache.h"
|
#include "asset_cache.h"
|
||||||
|
|
||||||
#include "asset_cache_core.c"
|
#include "asset_cache_core.c"
|
||||||
|
void AC_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
AC_StartupDeps();
|
||||||
|
AC_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
|
void AC_Main(void);
|
||||||
|
inline void AC_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "asset_cache_core.h"
|
#include "asset_cache_core.h"
|
||||||
|
|
||||||
|
|||||||
@ -5,12 +5,11 @@ AC_SharedState AC_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
AC_StartupReceipt AC_Startup(void)
|
void AC_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
AC_SharedState *g = &AC_shared_state;
|
AC_SharedState *g = &AC_shared_state;
|
||||||
g->store_arena = AllocArena(Gibi(64));
|
g->store_arena = AllocArena(Gibi(64));
|
||||||
return (AC_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -65,8 +65,7 @@ extern AC_SharedState AC_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(AC_StartupReceipt) { i32 _; };
|
void AC_StartupCore(void);
|
||||||
AC_StartupReceipt AC_Startup(void);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Hash
|
//~ Hash
|
||||||
|
|||||||
@ -17,3 +17,10 @@
|
|||||||
#else
|
#else
|
||||||
# error Base layer platform backend not implemented
|
# error Base layer platform backend not implemented
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void BaseMain(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
StartupBaseDeps();
|
||||||
|
StartupBaseJobs();
|
||||||
|
}
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
#ifndef BASE_H
|
#ifndef BASE_H
|
||||||
#define BASE_H
|
#define BASE_H
|
||||||
|
|
||||||
|
inline void StartupBaseDeps(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#include "base_core.h"
|
#include "base_core.h"
|
||||||
|
|
||||||
#if LanguageIsC || LanguageIsCpp
|
#if LanguageIsC || LanguageIsCpp
|
||||||
@ -20,10 +24,10 @@
|
|||||||
# include "base_rand.h"
|
# include "base_rand.h"
|
||||||
# include "base_util.h"
|
# include "base_util.h"
|
||||||
# include "base_incbin.h"
|
# include "base_incbin.h"
|
||||||
|
|
||||||
#if PlatformIsWindows
|
#if PlatformIsWindows
|
||||||
# include "win32/base_win32.h"
|
# include "win32/base_win32.h"
|
||||||
#endif
|
#endif
|
||||||
|
void BaseMain(void);
|
||||||
|
|
||||||
#elif LanguageIsGpu
|
#elif LanguageIsGpu
|
||||||
//- Base gpu includes
|
//- Base gpu includes
|
||||||
|
|||||||
@ -554,16 +554,24 @@ ForceInline void UnlockTicketMutex(TicketMutex *tm)
|
|||||||
#define MaxFibers 4096
|
#define MaxFibers 4096
|
||||||
|
|
||||||
#if !LanguageIsGpu
|
#if !LanguageIsGpu
|
||||||
|
# if PlatformIsWindows
|
||||||
ForceInline i16 FiberId(void)
|
ForceInline i16 FiberId(void)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
#if LanguageIsCpp
|
||||||
//return (i16)(i64)GetFiberData();
|
i16 *v = reinterpret_cast<i16 *>((void *)__readgsqword(32));
|
||||||
Assert(0);
|
#else
|
||||||
return 0;
|
i16 *v = (void *)__readgsqword(32);
|
||||||
|
#endif
|
||||||
|
return *v;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
StaticAssert(MaxFibers < I16Max); /* Fiber id type should fit max fibers */
|
StaticAssert(MaxFibers < I16Max); /* Fiber id type should fit max fibers */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Startup
|
||||||
|
|
||||||
|
#define RunOnce() do { LocalPersist b32 r = 0; if (r) return; r = 1; } while (0)
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Config
|
//~ Config
|
||||||
|
|||||||
@ -32,6 +32,11 @@ typedef i32 PriorityKind; enum
|
|||||||
PriorityKind_Count
|
PriorityKind_Count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ @hookdecl Startup
|
||||||
|
|
||||||
|
void StartupBaseJobs(void);
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ @hookdecl Futex
|
//~ @hookdecl Futex
|
||||||
|
|
||||||
@ -67,17 +72,20 @@ Struct(JobDescParams)
|
|||||||
|
|
||||||
#define JobDecl(job, sigdef) \
|
#define JobDecl(job, sigdef) \
|
||||||
typedef struct job##_Sig sigdef job##_Sig; \
|
typedef struct job##_Sig sigdef job##_Sig; \
|
||||||
Struct(job##_Desc) { Arena *arena; job##_Sig *sig; GenericJobFunc *func; i32 count; PoolKind pool; PriorityKind priority; Counter *counter;}; \
|
Struct(job##_Desc) { Arena *arena; job##_Sig *sig; GenericJobFunc *func; i32 count; PoolKind pool; PriorityKind priority; Counter *counter; }; \
|
||||||
void job(job##_Sig *, i32)
|
void job(job##_Sig *, i32); \
|
||||||
|
inline void job##_Generic(void *sig, i32 id) { job((job##_Sig *)sig, id); } \
|
||||||
|
StaticAssert(1)
|
||||||
|
|
||||||
#define PushJobDesc(job, ...) (job##_Desc *)PushJobDesc_(sizeof(job##_Sig), alignof(job##_Sig), (GenericJobFunc *)(i64)job, (JobDescParams) { .count = 1, .pool = PoolKind_Inherit, .priority = PriorityKind_Inherit, .counter = 0, __VA_ARGS__ })
|
#define PushJobDesc(job, ...) (job##_Desc *)PushJobDesc_(sizeof(job##_Sig), alignof(job##_Sig), job##_Generic, (JobDescParams) { .count = 1, .pool = PoolKind_Inherit, .priority = PriorityKind_Inherit, .counter = 0, __VA_ARGS__ })
|
||||||
GenericJobDesc *PushJobDesc_(u64 sig_size, u64 sig_align, GenericJobFunc *func, JobDescParams params);
|
GenericJobDesc *PushJobDesc_(u64 sig_size, u64 sig_align, GenericJobFunc *func, JobDescParams params);
|
||||||
|
|
||||||
#define JobDef(job, sig_arg, id_arg) void job(job##_Sig *sig_arg, i32 id_arg)
|
#define JobDef(job, sig_arg, id_arg) void job(job##_Sig *sig_arg, i32 id_arg)
|
||||||
|
|
||||||
#define RunJob(_count, job, _pool, _priority, _counter, ...) do { \
|
#define RunJob(_count, job, _pool, _priority, _counter, ...) do { \
|
||||||
job##_Desc *__job_desc = (job##_Desc *)PushJobDesc_(sizeof(job##_Sig), alignof(job##_Sig), (GenericJobFunc *)(i64)job, (JobDescParams) { .count = _count, .pool = _pool, .priority = _priority, .counter = _counter,}); \
|
job##_Desc *__job_desc = (job##_Desc *)PushJobDesc_(sizeof(job##_Sig), alignof(job##_Sig), job##_Generic, (JobDescParams) { .count = _count, .pool = _pool, .priority = _priority, .counter = _counter,}); \
|
||||||
*__job_desc->sig = (job##_Sig) { __VA_ARGS__ }; \
|
*__job_desc->sig = (job##_Sig) { __VA_ARGS__ }; \
|
||||||
|
RunJobEx((GenericJobDesc *)__job_desc); \
|
||||||
} while (0)
|
} while (0)
|
||||||
void RunJobEx(GenericJobDesc *desc);
|
void RunJobEx(GenericJobDesc *desc);
|
||||||
|
|
||||||
|
|||||||
@ -17,9 +17,9 @@ W32_SharedCtx W32_shared_ctx = ZI;
|
|||||||
#pragma comment(lib, "ws2_32.lib")
|
#pragma comment(lib, "ws2_32.lib")
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ @hookdef Startup
|
||||||
|
|
||||||
void StartupJobs(void)
|
void StartupBaseJobs(void)
|
||||||
{
|
{
|
||||||
W32_SharedCtx *g = &W32_shared_ctx;
|
W32_SharedCtx *g = &W32_shared_ctx;
|
||||||
|
|
||||||
@ -40,6 +40,9 @@ void StartupJobs(void)
|
|||||||
g->num_fibers = 1; /* Fiber at index 0 always nil */
|
g->num_fibers = 1; /* Fiber at index 0 always nil */
|
||||||
g->fiber_names_arena = AllocArena(Gibi(64));
|
g->fiber_names_arena = AllocArena(Gibi(64));
|
||||||
|
|
||||||
|
/* Convert main thread to fiber */
|
||||||
|
W32_AllocFiber(0);
|
||||||
|
|
||||||
/* Init wait lists */
|
/* Init wait lists */
|
||||||
g->wait_lists_arena = AllocArena(Gibi(64));
|
g->wait_lists_arena = AllocArena(Gibi(64));
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "bitbuff.h"
|
#include "bitbuff.h"
|
||||||
|
|
||||||
#include "bitbuff_core.c"
|
#include "bitbuff_core.c"
|
||||||
|
void BB_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
BB_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define BITBUFF_H
|
#define BITBUFF_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void BB_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "bitbuff_core.h"
|
#include "bitbuff_core.h"
|
||||||
|
void BB_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "collider.h"
|
#include "collider.h"
|
||||||
|
|
||||||
#include "collider_core.c"
|
#include "collider_core.c"
|
||||||
|
void CLD_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
CLD_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define COLLIDER_H
|
#define COLLIDER_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void CLD_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "collider_core.h"
|
#include "collider_core.h"
|
||||||
|
void CLD_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
|
|
||||||
#include "draw_core.c"
|
#include "draw_core.c"
|
||||||
|
void D_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
D_StartupDeps();
|
||||||
|
D_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -6,7 +6,16 @@
|
|||||||
#include "../sprite/sprite.h"
|
#include "../sprite/sprite.h"
|
||||||
#include "../font/font.h"
|
#include "../font/font.h"
|
||||||
#include "../collider/collider.h"
|
#include "../collider/collider.h"
|
||||||
|
inline void D_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
GPU_Main();
|
||||||
|
S_Main();
|
||||||
|
F_Main();
|
||||||
|
CLD_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "draw_core.h"
|
#include "draw_core.h"
|
||||||
|
void D_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -3,13 +3,12 @@ D_SharedState D_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
D_StartupReceipt D_Startup(void)
|
void D_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
D_SharedState *g = &D_shared_state;
|
D_SharedState *g = &D_shared_state;
|
||||||
u32 pixel_white = 0xFFFFFFFF;
|
u32 pixel_white = 0xFFFFFFFF;
|
||||||
g->solid_white_texture = GPU_AllocTexture(GP_TEXTURE_FORMAT_R8G8B8A8_UNORM, 0, VEC2I32(1, 1), &pixel_white);
|
g->solid_white_texture = GPU_AllocTexture(GP_TEXTURE_FORMAT_R8G8B8A8_UNORM, 0, VEC2I32(1, 1), &pixel_white);
|
||||||
return (D_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -111,8 +111,7 @@ extern D_SharedState D_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(D_StartupReceipt) { i32 _; };
|
void D_StartupCore(void);
|
||||||
D_StartupReceipt D_Startup(void);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Material operations
|
//~ Material operations
|
||||||
|
|||||||
@ -8,3 +8,8 @@ extern "C"
|
|||||||
#else
|
#else
|
||||||
# error Dxc core not implemented for this platform
|
# error Dxc core not implemented for this platform
|
||||||
#endif
|
#endif
|
||||||
|
void DXC_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
DXC_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define DXC_H
|
#define DXC_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void DXC_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "dxc_core.h"
|
#include "dxc_core.h"
|
||||||
|
void DXC_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "font.h"
|
#include "font.h"
|
||||||
|
|
||||||
#include "font_core.c"
|
#include "font_core.c"
|
||||||
|
void F_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
F_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -6,7 +6,16 @@
|
|||||||
#include "../gpu/gpu.h"
|
#include "../gpu/gpu.h"
|
||||||
#include "../resource/resource.h"
|
#include "../resource/resource.h"
|
||||||
#include "../asset_cache/asset_cache.h"
|
#include "../asset_cache/asset_cache.h"
|
||||||
|
inline void F_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
TTF_Main();
|
||||||
|
GPU_Main();
|
||||||
|
RES_Main();
|
||||||
|
AC_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "font_core.h"
|
#include "font_core.h"
|
||||||
|
void F_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -7,3 +7,9 @@
|
|||||||
#else
|
#else
|
||||||
# error Gpu layer not implemented for this platform
|
# error Gpu layer not implemented for this platform
|
||||||
#endif
|
#endif
|
||||||
|
void GPU_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
GPU_StartupDeps();
|
||||||
|
GPU_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -9,11 +9,22 @@
|
|||||||
#include "../inc/inc.h"
|
#include "../inc/inc.h"
|
||||||
#include "../resource/resource.h"
|
#include "../resource/resource.h"
|
||||||
#include "../watch/watch.h"
|
#include "../watch/watch.h"
|
||||||
|
inline void GPU_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
TAR_Main();
|
||||||
|
ASE_Main();
|
||||||
|
DXC_Main();
|
||||||
|
INC_Main();
|
||||||
|
RES_Main();
|
||||||
|
W_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "gpu_core.h"
|
#include "gpu_core.h"
|
||||||
|
|
||||||
#if PlatformIsWindows
|
#if PlatformIsWindows
|
||||||
# include "gpu_dx12.h"
|
# include "gpu_dx12.h"
|
||||||
#endif
|
#endif
|
||||||
|
void GPU_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -110,7 +110,7 @@ Struct(GPU_MemoryInfo)
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
void GPU_Startup(void);
|
void GPU_StartupCore(void);
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Resource operations
|
//~ Resource operations
|
||||||
|
|||||||
@ -18,7 +18,7 @@ GPU_D12_SharedState GPU_D12_shared_state = ZI;
|
|||||||
* Startup
|
* Startup
|
||||||
* ========================== */
|
* ========================== */
|
||||||
|
|
||||||
void GPU_Startup(void)
|
void GPU_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
GPU_D12_SharedState *g = &GPU_D12_shared_state;
|
GPU_D12_SharedState *g = &GPU_D12_shared_state;
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "inc.h"
|
#include "inc.h"
|
||||||
|
|
||||||
#include "inc_core.c"
|
#include "inc_core.c"
|
||||||
|
void INC_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
INC_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define INC_H
|
#define INC_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void INC_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "inc_core.h"
|
#include "inc_core.h"
|
||||||
|
void INC_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "json.h"
|
#include "json.h"
|
||||||
|
|
||||||
#include "json_core.c"
|
#include "json_core.c"
|
||||||
|
void JSON_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
JSON_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define JSON_H
|
#define JSON_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void JSON_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "json_core.h"
|
#include "json_core.h"
|
||||||
|
void JSON_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "mixer.h"
|
#include "mixer.h"
|
||||||
|
|
||||||
#include "mixer_core.c"
|
#include "mixer_core.c"
|
||||||
|
void MIX_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
MIX_StartupDeps();
|
||||||
|
MIX_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,7 +4,14 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../sound/sound.h"
|
#include "../sound/sound.h"
|
||||||
|
inline void MIX_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
SND_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "mixer_core.h"
|
#include "mixer_core.h"
|
||||||
|
void MIX_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -19,14 +19,13 @@ MIX_SharedState M_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
MIX_StartupReceipt MIX_Startup(void)
|
void MIX_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
MIX_SharedState *g = &M_shared_state;
|
MIX_SharedState *g = &M_shared_state;
|
||||||
g->track_arena = AllocArena(Gibi(64));
|
g->track_arena = AllocArena(Gibi(64));
|
||||||
g->listener_pos = VEC2(0, 0);
|
g->listener_pos = VEC2(0, 0);
|
||||||
g->listener_dir = VEC2(0, -1);
|
g->listener_dir = VEC2(0, -1);
|
||||||
return (MIX_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -98,8 +98,7 @@ extern MIX_SharedState M_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(MIX_StartupReceipt) { i32 _; };
|
void MIX_StartupCore(void);
|
||||||
MIX_StartupReceipt MIX_Startup(void);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Track operations
|
//~ Track operations
|
||||||
|
|||||||
@ -5,3 +5,8 @@
|
|||||||
#else
|
#else
|
||||||
# error Mp3 core not implemented for this platform
|
# error Mp3 core not implemented for this platform
|
||||||
#endif
|
#endif
|
||||||
|
void MP3_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
MP3_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,7 +2,12 @@
|
|||||||
#define MP3_H
|
#define MP3_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void MP3_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "mp3_core.h"
|
#include "mp3_core.h"
|
||||||
|
void MP3_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "net.h"
|
#include "net.h"
|
||||||
|
|
||||||
#include "net_core.c"
|
#include "net_core.c"
|
||||||
|
void N_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
N_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,7 +4,14 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../bitbuff/bitbuff.h"
|
#include "../bitbuff/bitbuff.h"
|
||||||
|
inline void N_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
BB_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "net_core.h"
|
#include "net_core.h"
|
||||||
|
void N_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -7,3 +7,10 @@
|
|||||||
#else
|
#else
|
||||||
# error Platform core not implemented
|
# error Platform core not implemented
|
||||||
#endif
|
#endif
|
||||||
|
void P_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
P_StartupDeps();
|
||||||
|
/* FIXME: Logfile path */
|
||||||
|
P_StartupLog(Lit("log.txt"));
|
||||||
|
}
|
||||||
|
|||||||
@ -2,12 +2,16 @@
|
|||||||
#define PLATFORM_H
|
#define PLATFORM_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void P_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "platform_core.h"
|
#include "platform_core.h"
|
||||||
#include "platform_log.h"
|
#include "platform_log.h"
|
||||||
|
|
||||||
#if PlatformIsWindows
|
#if PlatformIsWindows
|
||||||
# include "platform_win32.h"
|
# include "platform_win32.h"
|
||||||
#endif
|
#endif
|
||||||
|
void P_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -6,7 +6,7 @@ P_SharedLogState P_shared_log_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
void P_LogStartup(String logfile_path)
|
void P_StartupLog(String logfile_path)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
P_SharedLogState *ctx = &P_shared_log_state;
|
P_SharedLogState *ctx = &P_shared_log_state;
|
||||||
|
|||||||
@ -117,7 +117,7 @@ Global Readonly P_LogLevelSettings P_log_settings[P_LogLevel_Count] = {
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
void P_LogStartup(String logfile_path);
|
void P_StartupLog(String logfile_path);
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Logging macros
|
//~ Logging macros
|
||||||
|
|||||||
@ -2075,6 +2075,8 @@ JobDef(P_W32_AppShutdownJob, UNUSED sig, UNUSED id)
|
|||||||
|
|
||||||
int CALLBACK wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev_instance, _In_ LPWSTR cmdline_wstr, _In_ int show_code)
|
int CALLBACK wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev_instance, _In_ LPWSTR cmdline_wstr, _In_ int show_code)
|
||||||
{
|
{
|
||||||
|
P_Main();
|
||||||
|
|
||||||
LAX instance;
|
LAX instance;
|
||||||
LAX prev_instance;
|
LAX prev_instance;
|
||||||
LAX cmdline_wstr;
|
LAX cmdline_wstr;
|
||||||
@ -2163,9 +2165,6 @@ int CALLBACK wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev_instance,
|
|||||||
g->exit_begin_event = CreateEventW(0, 1, 0, 0);
|
g->exit_begin_event = CreateEventW(0, 1, 0, 0);
|
||||||
g->exit_end_event = CreateEventW(0, 1, 0, 0);
|
g->exit_end_event = CreateEventW(0, 1, 0, 0);
|
||||||
|
|
||||||
/* Convert main thread to fiber */
|
|
||||||
W32_AllocFiber(0);
|
|
||||||
|
|
||||||
u64 cmdline_len = WstrLen(cmdline_wstr, countof(g->cmdline_args_wstr) - 1);
|
u64 cmdline_len = WstrLen(cmdline_wstr, countof(g->cmdline_args_wstr) - 1);
|
||||||
CopyBytes(g->cmdline_args_wstr, cmdline_wstr, cmdline_len * sizeof(*cmdline_wstr));
|
CopyBytes(g->cmdline_args_wstr, cmdline_wstr, cmdline_len * sizeof(*cmdline_wstr));
|
||||||
g->cmdline_args_wstr[cmdline_len] = 0;
|
g->cmdline_args_wstr[cmdline_len] = 0;
|
||||||
|
|||||||
@ -5,3 +5,9 @@
|
|||||||
#else
|
#else
|
||||||
# error Playback core not implemented for this platform
|
# error Playback core not implemented for this platform
|
||||||
#endif
|
#endif
|
||||||
|
void PB_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
PB_StartupDeps();
|
||||||
|
PB_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,11 +4,17 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../mixer/mixer.h"
|
#include "../mixer/mixer.h"
|
||||||
|
inline void PB_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
MIX_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "playback_core.h"
|
#include "playback_core.h"
|
||||||
|
|
||||||
#if PlatformIsWindows
|
#if PlatformIsWindows
|
||||||
# include "playback_win32.h"
|
# include "playback_win32.h"
|
||||||
#endif
|
#endif
|
||||||
|
void PB_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
#define PB_SampleRate 48000
|
#define PB_SampleRate 48000
|
||||||
|
|
||||||
Struct(PB_StartupReceipt) { i32 _; };
|
void PB_StartupCore(void);
|
||||||
PB_StartupReceipt PB_Startup(MIX_StartupReceipt *mixer_sr);
|
|
||||||
|
|||||||
@ -9,17 +9,14 @@ PB_WSP_SharedState PB_WSP_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
PB_StartupReceipt PB_Startup(MIX_StartupReceipt *mixer_sr)
|
void PB_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
PB_WSP_SharedState *g = &PB_WSP_shared_state;
|
PB_WSP_SharedState *g = &PB_WSP_shared_state;
|
||||||
LAX mixer_sr;
|
|
||||||
PB_WSP_InitializeWasapi();
|
PB_WSP_InitializeWasapi();
|
||||||
/* Start playback job */
|
/* Start playback job */
|
||||||
RunJob(1, PB_WSP_PlaybackJob, 0, PoolKind_Audio, PriorityKind_High, &g->PB_WSP_PlaybackJob_counter);
|
RunJob(1, PB_WSP_PlaybackJob, 0, PoolKind_Audio, PriorityKind_High, &g->PB_WSP_PlaybackJob_counter);
|
||||||
P_OnExit(&PB_WSP_Shutdown);
|
P_OnExit(&PB_WSP_Shutdown);
|
||||||
|
|
||||||
return (PB_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
P_ExitFuncDef(PB_WSP_Shutdown)
|
P_ExitFuncDef(PB_WSP_Shutdown)
|
||||||
|
|||||||
@ -6,3 +6,10 @@
|
|||||||
#include "pp_space.c"
|
#include "pp_space.c"
|
||||||
#include "pp_sim.c"
|
#include "pp_sim.c"
|
||||||
#include "pp_core.c"
|
#include "pp_core.c"
|
||||||
|
void PpMain(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
StartupPpDeps();
|
||||||
|
StartupSim();
|
||||||
|
StartupUser();
|
||||||
|
}
|
||||||
|
|||||||
13
src/pp/pp.h
13
src/pp/pp.h
@ -10,6 +10,18 @@
|
|||||||
#include "../net/net.h"
|
#include "../net/net.h"
|
||||||
#include "../mixer/mixer.h"
|
#include "../mixer/mixer.h"
|
||||||
#include "../bitbuff/bitbuff.h"
|
#include "../bitbuff/bitbuff.h"
|
||||||
|
inline void StartupPpDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
GPU_Main();
|
||||||
|
S_Main();
|
||||||
|
F_Main();
|
||||||
|
CLD_Main();
|
||||||
|
D_Main();
|
||||||
|
N_Main();
|
||||||
|
MIX_Main();
|
||||||
|
BB_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "pp_sim.h"
|
#include "pp_sim.h"
|
||||||
#include "pp_phys.h"
|
#include "pp_phys.h"
|
||||||
@ -17,5 +29,6 @@
|
|||||||
#include "pp_ent.h"
|
#include "pp_ent.h"
|
||||||
#include "pp_step.h"
|
#include "pp_step.h"
|
||||||
#include "pp_core.h"
|
#include "pp_core.h"
|
||||||
|
void PpMain(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -3,19 +3,9 @@ SharedUserState shared_user_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
UserStartupReceipt StartupUser(S_StartupReceipt *sprite_sr,
|
void StartupUser(void)
|
||||||
D_StartupReceipt *draw_sr,
|
|
||||||
AC_StartupReceipt *asset_cache_sr,
|
|
||||||
MIX_StartupReceipt *mixer_sr,
|
|
||||||
SimStartupReceipt *sim_sr,
|
|
||||||
String connect_address_str)
|
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
LAX sprite_sr;
|
|
||||||
LAX draw_sr;
|
|
||||||
LAX asset_cache_sr;
|
|
||||||
LAX mixer_sr;
|
|
||||||
LAX sim_sr;
|
|
||||||
SharedUserState *g = &shared_user_state;
|
SharedUserState *g = &shared_user_state;
|
||||||
|
|
||||||
SetGstat(GSTAT_DEBUG_STEPS, U64Max);
|
SetGstat(GSTAT_DEBUG_STEPS, U64Max);
|
||||||
@ -24,6 +14,7 @@ UserStartupReceipt StartupUser(S_StartupReceipt *sprite_sr,
|
|||||||
g->real_time_ns = TimeNs();
|
g->real_time_ns = TimeNs();
|
||||||
|
|
||||||
/* TODO: Remove this */
|
/* TODO: Remove this */
|
||||||
|
String connect_address_str = Lit("");
|
||||||
g->connect_address_str = PushString(g->arena, connect_address_str);
|
g->connect_address_str = PushString(g->arena, connect_address_str);
|
||||||
|
|
||||||
/* Initialize average dt to a reasonable value */
|
/* Initialize average dt to a reasonable value */
|
||||||
@ -56,8 +47,6 @@ UserStartupReceipt StartupUser(S_StartupReceipt *sprite_sr,
|
|||||||
RunJob(1, UpdateUserJob, 0, PoolKind_User, PriorityKind_High, &g->shutdown_job_counters);
|
RunJob(1, UpdateUserJob, 0, PoolKind_User, PriorityKind_High, &g->shutdown_job_counters);
|
||||||
RunJob(1, SimJob, 0, PoolKind_Sim, PriorityKind_High, &g->shutdown_job_counters);
|
RunJob(1, SimJob, 0, PoolKind_Sim, PriorityKind_High, &g->shutdown_job_counters);
|
||||||
P_OnExit(&ShutdownUser);
|
P_OnExit(&ShutdownUser);
|
||||||
|
|
||||||
return (UserStartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -252,13 +252,7 @@ extern SharedUserState shared_user_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(UserStartupReceipt) { i32 _; };
|
void StartupUser(void);
|
||||||
UserStartupReceipt StartupUser(S_StartupReceipt *sprite_sr,
|
|
||||||
D_StartupReceipt *draw_sr,
|
|
||||||
AC_StartupReceipt *asset_cache_sr,
|
|
||||||
MIX_StartupReceipt *mixer_sr,
|
|
||||||
SimStartupReceipt *sim_sr,
|
|
||||||
String connect_address_str);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Shutdown
|
//~ Shutdown
|
||||||
|
|||||||
@ -52,7 +52,7 @@ Readonly Snapshot **_g_sim_snapshot_nil = &G.nil_snapshot;
|
|||||||
/* Accessed via `sim_ent_nil()` */
|
/* Accessed via `sim_ent_nil()` */
|
||||||
Readonly Entity **_g_sim_ent_nil = &G.nil_ent;
|
Readonly Entity **_g_sim_ent_nil = &G.nil_ent;
|
||||||
|
|
||||||
SimStartupReceipt SimStartup(void)
|
void StartupSim(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
G.nil_arena = AllocArena(Gibi(1));
|
G.nil_arena = AllocArena(Gibi(1));
|
||||||
@ -87,7 +87,6 @@ SimStartupReceipt SimStartup(void)
|
|||||||
|
|
||||||
/* Lock nil arena */
|
/* Lock nil arena */
|
||||||
SetArenaReadonly(G.nil_arena);
|
SetArenaReadonly(G.nil_arena);
|
||||||
return (SimStartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========================== *
|
/* ========================== *
|
||||||
|
|||||||
@ -24,8 +24,7 @@ Struct(ClientHandle) {
|
|||||||
* Startup
|
* Startup
|
||||||
* ========================== */
|
* ========================== */
|
||||||
|
|
||||||
Struct(SimStartupReceipt) { i32 _; };
|
void StartupSim(void);
|
||||||
SimStartupReceipt SimStartup(void);
|
|
||||||
|
|
||||||
/* ========================== *
|
/* ========================== *
|
||||||
* Client store
|
* Client store
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
#include "resource_core.c"
|
#include "resource_core.c"
|
||||||
|
void RES_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
RES_StartupDeps();
|
||||||
|
RES_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,11 +4,20 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../tar/tar.h"
|
#include "../tar/tar.h"
|
||||||
|
|
||||||
#if RESOURCES_EMBEDDED
|
#if RESOURCES_EMBEDDED
|
||||||
# include "../inc/inc.h"
|
# include "../inc/inc.h"
|
||||||
#endif
|
#endif
|
||||||
|
inline void RES_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
TAR_Main();
|
||||||
|
#if RESOURCES_EMBEDDED
|
||||||
|
INC_Main();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#include "resource_core.h"
|
#include "resource_core.h"
|
||||||
|
void RES_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -3,7 +3,7 @@ RES_SharedState RES_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
RES_StartupReceipt RES_Startup(void)
|
void RES_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
RES_SharedState *g = &RES_shared_state;
|
RES_SharedState *g = &RES_shared_state;
|
||||||
@ -23,8 +23,6 @@ RES_StartupReceipt RES_Startup(void)
|
|||||||
P_Panic(Lit("Resource directory \"res\" not found. Make sure the executable is being launched from the correct working directory."));
|
P_Panic(Lit("Resource directory \"res\" not found. Make sure the executable is being launched from the correct working directory."));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (RES_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -33,8 +33,7 @@ extern RES_SharedState RES_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(RES_StartupReceipt) { i32 _; };
|
void RES_StartupCore(void);
|
||||||
RES_StartupReceipt RES_Startup(void);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Open / close
|
//~ Open / close
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "settings_core.c"
|
#include "settings_core.c"
|
||||||
|
void SETTINGS_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
SETTINGS_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,7 +4,14 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../json/json.h"
|
#include "../json/json.h"
|
||||||
|
inline void SETTINGS_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
JSON_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "settings_core.h"
|
#include "settings_core.h"
|
||||||
|
void SETTINGS_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
||||||
#include "sound_core.c"
|
#include "sound_core.c"
|
||||||
|
void SND_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
SND_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -6,7 +6,16 @@
|
|||||||
#include "../mp3/mp3.h"
|
#include "../mp3/mp3.h"
|
||||||
#include "../resource/resource.h"
|
#include "../resource/resource.h"
|
||||||
#include "../asset_cache/asset_cache.h"
|
#include "../asset_cache/asset_cache.h"
|
||||||
|
inline void SND_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
MP3_Main();
|
||||||
|
RES_Main();
|
||||||
|
AC_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "sound_core.h"
|
#include "sound_core.h"
|
||||||
|
void SND_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
|
||||||
#include "sprite_core.c"
|
#include "sprite_core.c"
|
||||||
|
void S_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
S_StartupDeps();
|
||||||
|
S_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -7,7 +7,17 @@
|
|||||||
#include "../ase/ase.h"
|
#include "../ase/ase.h"
|
||||||
#include "../resource/resource.h"
|
#include "../resource/resource.h"
|
||||||
#include "../watch/watch.h"
|
#include "../watch/watch.h"
|
||||||
|
inline void S_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
GPU_Main();
|
||||||
|
ASE_Main();
|
||||||
|
RES_Main();
|
||||||
|
W_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "sprite_core.h"
|
#include "sprite_core.h"
|
||||||
|
void S_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -3,7 +3,7 @@ S_SharedState S_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
S_StartupReceipt S_Startup(void)
|
void S_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
S_SharedState *g = &S_shared_state;
|
S_SharedState *g = &S_shared_state;
|
||||||
@ -42,14 +42,12 @@ S_StartupReceipt S_Startup(void)
|
|||||||
|
|
||||||
g->scopes_arena = AllocArena(Gibi(64));
|
g->scopes_arena = AllocArena(Gibi(64));
|
||||||
|
|
||||||
RunJob(1, S_EvictorJob, 0, PoolKind_Background, PriorityKind_Low, &g->shutdown_counter);
|
RunJob(1, S_EvictorJob, PoolKind_Background, PriorityKind_Low, &g->shutdown_counter, 0);
|
||||||
|
|
||||||
P_OnExit(&S_Shutdown);
|
P_OnExit(&S_Shutdown);
|
||||||
#if RESOURCE_RELOADING
|
#if RESOURCE_RELOADING
|
||||||
W_RegisterCallback(&S_WatchSpriteCallback);
|
W_RegisterCallback(&S_WatchSpriteCallback);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (S_StartupReceipt) { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -255,8 +255,7 @@ extern S_SharedState S_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
Struct(S_StartupReceipt) { i32 _; };
|
void S_StartupCore(void);
|
||||||
S_StartupReceipt S_Startup(void);
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Shutdown
|
//~ Shutdown
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
#include "tar.h"
|
#include "tar.h"
|
||||||
|
|
||||||
#include "tar_core.c"
|
#include "tar_core.c"
|
||||||
|
void TAR_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
TAR_StartupDeps();
|
||||||
|
}
|
||||||
|
|||||||
@ -4,7 +4,14 @@
|
|||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
#include "../bitbuff/bitbuff.h"
|
#include "../bitbuff/bitbuff.h"
|
||||||
|
inline void TAR_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
BB_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "tar_core.h"
|
#include "tar_core.h"
|
||||||
|
void TAR_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -8,3 +8,9 @@ extern "C"
|
|||||||
#else
|
#else
|
||||||
# error TTF not implemented for this platform
|
# error TTF not implemented for this platform
|
||||||
#endif
|
#endif
|
||||||
|
void TTF_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
TTF_StartupDeps();
|
||||||
|
TTF_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -2,11 +2,15 @@
|
|||||||
#define TTF_H
|
#define TTF_H
|
||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
|
inline void TTF_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
}
|
||||||
|
|
||||||
#include "ttf_core.h"
|
#include "ttf_core.h"
|
||||||
|
|
||||||
#if PlatformIsWindows
|
#if PlatformIsWindows
|
||||||
# include "ttf_dwrite.h"
|
# include "ttf_dwrite.h"
|
||||||
#endif
|
#endif
|
||||||
|
void TTF_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -18,7 +18,6 @@ Struct(TTF_Result)
|
|||||||
u32 *image_pixels; /* Array of [width * height] pixels */
|
u32 *image_pixels; /* Array of [width * height] pixels */
|
||||||
};
|
};
|
||||||
|
|
||||||
Struct(TTF_StartupReceipt) { i32 _; };
|
void TTF_StartupCore(void);
|
||||||
TTF_StartupReceipt TTF_Startup(void);
|
|
||||||
|
|
||||||
TTF_Result TTF_Decode(Arena *arena, String encoded, f32 point_size, u32 *cache_codes, u32 cache_codes_count);
|
TTF_Result TTF_Decode(Arena *arena, String encoded, f32 point_size, u32 *cache_codes, u32 cache_codes_count);
|
||||||
|
|||||||
@ -21,7 +21,7 @@ extern TTF_DW_SharedState TTF_DW_shared_state = ZI;
|
|||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
/* Call this during font system startup */
|
/* Call this during font system startup */
|
||||||
TTF_StartupReceipt TTF_Startup(void)
|
void TTF_StartupCore(void)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
TTF_DW_SharedState *g = &TTF_DW_shared_state;
|
TTF_DW_SharedState *g = &TTF_DW_shared_state;
|
||||||
@ -48,8 +48,6 @@ TTF_StartupReceipt TTF_Startup(void)
|
|||||||
//P_Panic(Lit("Error creating DWrite factory"));
|
//P_Panic(Lit("Error creating DWrite factory"));
|
||||||
(*(volatile int *)0) = 0;
|
(*(volatile int *)0) = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { 0 };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
#include "watch.h"
|
#include "watch.h"
|
||||||
|
|
||||||
#include "watch_core.c"
|
#include "watch_core.c"
|
||||||
|
void W_Main(void)
|
||||||
|
{
|
||||||
|
RunOnce();
|
||||||
|
W_StartupDeps();
|
||||||
|
W_StartupCore();
|
||||||
|
}
|
||||||
|
|||||||
@ -3,7 +3,13 @@
|
|||||||
|
|
||||||
#include "../base/base.h"
|
#include "../base/base.h"
|
||||||
#include "../platform/platform.h"
|
#include "../platform/platform.h"
|
||||||
|
inline void W_StartupDeps(void)
|
||||||
|
{
|
||||||
|
BaseMain();
|
||||||
|
P_Main();
|
||||||
|
}
|
||||||
|
|
||||||
#include "watch_core.h"
|
#include "watch_core.h"
|
||||||
|
void W_Main(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -3,15 +3,15 @@ W_SharedState W_shared_state = ZI;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
void W_Startup(void)
|
void W_StartupCore(void)
|
||||||
{
|
{
|
||||||
W_SharedState *g = &W_shared_state;
|
W_SharedState *g = &W_shared_state;
|
||||||
g->watch = P_AllocWatch(Lit("./"));
|
g->watch = P_AllocWatch(Lit("./"));
|
||||||
|
|
||||||
g->watch_events_arena = AllocArena(Gibi(64));
|
g->watch_events_arena = AllocArena(Gibi(64));
|
||||||
|
|
||||||
RunJob(1, W_MonitorJob, 0, PoolKind_Floating, PriorityKind_Low, &g->watch_jobs_counter);
|
RunJob(1, W_MonitorJob, PoolKind_Floating, PriorityKind_Low, &g->watch_jobs_counter, 0);
|
||||||
RunJob(1, W_DispatcherJob, 0, PoolKind_Background, PriorityKind_Low, &g->watch_jobs_counter);
|
RunJob(1, W_DispatcherJob, PoolKind_Background, PriorityKind_Low, &g->watch_jobs_counter, 0);
|
||||||
P_OnExit(&W_Shutdown);
|
P_OnExit(&W_Shutdown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ extern W_SharedState W_shared_state;
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ Startup
|
//~ Startup
|
||||||
|
|
||||||
void W_Startup(void);
|
void W_StartupCore(void);
|
||||||
P_ExitFuncDef(W_Shutdown);
|
P_ExitFuncDef(W_Shutdown);
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user