diff --git a/code/grime/assert.odin b/code/grime/assert.odin index c36433f..4542c13 100644 --- a/code/grime/assert.odin +++ b/code/grime/assert.odin @@ -5,34 +5,6 @@ import "core:io" import "core:os" import "core:text/table" -dump_stacktrace :: proc( allocator := context.temp_allocator ) -> string -{ - trace_result := stacktrace() - lines, error := stacktrace_lines( trace_result ) - - padding := " " - - log_table := table.init( & table.Table{}, context.temp_allocator, context.temp_allocator ) - for line in lines { - table.row( log_table, padding, line.symbol, " - ", line.location ) - } - // table.build(log_table) - // TODO(Ed): regression with the stack trace lib - - writer_builder : StringBuilder - str_builder_init( & writer_builder, allocator = allocator ) - - writer := to_writer( & writer_builder ) - for row in 2 ..< log_table.nr_rows { - for col in 0 ..< log_table.nr_cols { - table.write_table_cell( writer, log_table, row, col ) - } - io.write_byte( writer, '\n' ) - } - - return to_string( writer_builder ) -} - ensure :: #force_inline proc( condition : b32, msg : string, location := #caller_location ) { if condition { diff --git a/code/grime/pkg_mappings.odin b/code/grime/pkg_mappings.odin index 609aa85..f08d0e9 100644 --- a/code/grime/pkg_mappings.odin +++ b/code/grime/pkg_mappings.odin @@ -128,11 +128,6 @@ import "core:unicode/utf8" //#endregion("core") -import "thirdparty:backtrace" - StackTraceData :: backtrace.Trace_Const - stacktrace :: backtrace.trace - stacktrace_lines :: backtrace.lines - //#region("Proc overload mappings") array_append :: proc { diff --git a/code/sectr/engine/client_api.odin b/code/sectr/engine/client_api.odin index 79beff7..b9fec10 100644 --- a/code/sectr/engine/client_api.odin +++ b/code/sectr/engine/client_api.odin @@ -536,7 +536,7 @@ tick_work_frame :: #force_inline proc( host_delta_time_ms : f64 ) -> b32 debug.draw_ui_box_bounds_points = false debug.draw_ui_padding_bounds = false - debug.draw_ui_content_bounds = true + debug.draw_ui_content_bounds = false // config.engine_refresh_hz = 165 diff --git a/code/sectr/grime/pkg_mappings.odin b/code/sectr/grime/pkg_mappings.odin index da6ec63..a2b9df9 100644 --- a/code/sectr/grime/pkg_mappings.odin +++ b/code/sectr/grime/pkg_mappings.odin @@ -163,11 +163,6 @@ import "core:unicode/utf8" //endregion core -import "thirdparty:backtrace" - StackTraceData :: backtrace.Trace_Const - stacktrace :: backtrace.trace - stacktrace_lines :: backtrace.lines - //region codebase import "codebase:grime" diff --git a/scripts/build.ps1 b/scripts/build.ps1 index b0d706b..ac6099f 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -210,9 +210,9 @@ push-location $path_root $build_args += $flag_use_separate_modules $build_args += $flag_thread_count + $CoreCount_Physical # $build_args += $flag_optimize_none - $build_args += $flag_optimize_minimal + # $build_args += $flag_optimize_minimal # $build_args += $flag_optimize_speed - # $build_args += $falg_optimize_aggressive + $build_args += $falg_optimize_aggressive $build_args += $flag_debug $build_args += $flag_pdb_name + $pdb $build_args += $flag_subsystem + 'windows' diff --git a/scripts/update_deps.ps1 b/scripts/update_deps.ps1 index 25a00cf..38300c6 100644 --- a/scripts/update_deps.ps1 +++ b/scripts/update_deps.ps1 @@ -6,14 +6,12 @@ $path_build = join-path $path_root 'build' $path_thirdparty = join-path $path_root 'thirdparty' $path_toolchain = join-path $path_root 'toolchain' -$url_backtrace_repo = 'https://github.com/Ed94/back.git' $url_harfbuzz = 'https://github.com/Ed94/harfbuzz-odin.git' $url_ini_parser = 'https://github.com/laytan/odin-ini-parser.git' $url_odin_repo = 'https://github.com/Ed94/Odin.git' $url_sokol = 'https://github.com/Ed94/sokol-odin.git' $url_sokol_tools = 'https://github.com/floooh/sokol-tools-bin.git' -$path_backtrace = join-path $path_thirdparty 'backtrace' $path_harfbuzz = join-path $path_thirdparty 'harfbuzz' $path_ini_parser = join-path $path_thirdparty 'ini' $path_odin = join-path $path_toolchain 'Odin' @@ -32,7 +30,6 @@ $result = verify-path $path_toolchain $binaries_dirty = $false -clone-gitrepo $path_backtrace $url_backtrace_repo clone-gitrepo $path_ini_parser $url_ini_parser clone-gitrepo $path_ini_parser $url_ini_parser clone-gitrepo $path_sokol_tools $url_sokol_tools