diff options
author | 2020-04-13 21:32:00 +0200 | |
---|---|---|
committer | 2020-04-13 21:32:00 +0200 | |
commit | 5b6013caea7999deb8d481fbf67b28969d5e79ff (patch) | |
tree | f7185c986ca46533e8e58db6dbad395552f7b349 /scripts/src | |
parent | d4093c59dbd80bcac916c08dd49278f0b1052c26 (diff) |
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.
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/netlist.lua | 2 | ||||
-rw-r--r-- | scripts/src/tools.lua | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/src/netlist.lua b/scripts/src/netlist.lua index 3bc6cb34645..fca5dc2a3ce 100644 --- a/scripts/src/netlist.lua +++ b/scripts/src/netlist.lua @@ -233,4 +233,6 @@ project "netlist" MAME_DIR .. "src/lib/netlist/macro/nlm_opamp.h", MAME_DIR .. "src/lib/netlist/macro/nlm_other.cpp", MAME_DIR .. "src/lib/netlist/macro/nlm_other.h", + + MAME_DIR .. "src/lib/netlist/generated/static_solvers.cpp", } 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", } |