From 5b6013caea7999deb8d481fbf67b28969d5e79ff Mon Sep 17 00:00:00 2001 From: couriersud Date: Mon, 13 Apr 2020 21:32:00 +0200 Subject: netlist: improve performance up to 65% on audio netlists. [Couriersud] This commit introduces precompiled static solver code. Due to additional optimizations the compiler can use because the detail calculation steps for the solution are known e.g. the kidniki netlist sees a 100% speed increase. In all environments (windows/*nix/osx) the source for the static solver code can be created using bash src/lib/netlist/nl_create_mame_solvers.sh This will create src/lib/netlist/generated/static_solvers.cpp which is compiled into the mame binary. The script is just a temporary workaround. The intention is that nltool whill be able to create this file with one call. There are other improvements in this commit speeding up the processing of timestep and dynamic calculations. --- scripts/src/tools.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/src/tools.lua') diff --git a/scripts/src/tools.lua b/scripts/src/tools.lua index 283b53f1b2c..a31abad29e9 100644 --- a/scripts/src/tools.lua +++ b/scripts/src/tools.lua @@ -462,6 +462,10 @@ includedirs { MAME_DIR .. "src/lib/netlist", } +defines { + "NL_DISABLE_DYNAMIC_LOAD=1", +} + files { MAME_DIR .. "src/lib/netlist/prg/nltool.cpp", } -- cgit v1.2.3-70-g09d2