summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2023-01-11 22:49:27 +0100
committer hap <happppp@users.noreply.github.com>2023-01-11 22:49:38 +0100
commit1996133366e96d922cb096441ad24e12eb8be392 (patch)
tree7b4dcf9feecdd43a71949dc89baf387ebd607cc6
parent77b9e2de935868d719663687a1aa8c7d4af04dda (diff)
nl_bship: use dynamic timestep instead
-rw-r--r--src/mame/handheld/nl_bship.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/handheld/nl_bship.cpp b/src/mame/handheld/nl_bship.cpp
index 0d062bc606e..924450c2d1d 100644
--- a/src/mame/handheld/nl_bship.cpp
+++ b/src/mame/handheld/nl_bship.cpp
@@ -17,10 +17,9 @@ are on the PCB, but not used for sound.
Noise source (used for explosion sound) is a zener diode, this is partially
HLE'd, as I don't think MAME's netlist simulates that.
-Things to look out for when tweaking SOLVER frequency: Most notably the sweep
-sound when you fire (Load/Go switch in Go mode, simply press Fire to test).
-Small tweaks can alter the sound a lot, and it's hard to get everything right.
-At 165000, P2 beeps sound wrong, but overall it's pretty good.
+Things to look out for when tweaking solver minimum time step: Most notably the
+sweep sound when you fire (Load/Go switch in Go mode, simply press Fire to test).
+Small tweaks can alter the sound a lot, it's hard to get everything right.
*/
@@ -31,8 +30,11 @@ At 165000, P2 beeps sound wrong, but overall it's pretty good.
NETLIST_START(bship)
{
- SOLVER(Solver, 165000)
+ SOLVER(Solver, 48000)
PARAM(Solver.ACCURACY, 1e-7)
+ PARAM(Solver.DYNAMIC_TS, 1)
+ PARAM(Solver.DYNAMIC_MIN_TIMESTEP, 4.82e-6)
+
ANALOG_INPUT(VBATT1, 9)
ANALOG_INPUT(VBATT2, 9)