Volkov: адаптировать тайминги MAME 0.287 и таймаут на macOS

This commit is contained in:
2026-09-15 17:57:20 +03:00
parent 8e389c03f8
commit 50c6e56b7b
7 changed files with 42 additions and 12 deletions
@@ -1,3 +1,10 @@
-- На медленном DSS можно растянуть расписание, сохранив всю матрицу.
local time_scale = tonumber(os.getenv("SPRCMD_TEST_TIME_SCALE") or "1")
assert(time_scale and time_scale >= 1, "SPRCMD_TEST_TIME_SCALE должен быть >= 1")
if os.getenv("SPRCMD_TEST_UNTHROTTLED") == "1" then
manager.machine.video.throttled = false
end
-- P5 на HDD D: 20 copy, 100 refresh и три полных cleanup-цикла.
local KB = ":kbd:ms_naturl:"
@@ -136,7 +143,7 @@ end)
emu.register_periodic(function()
if not start_time then return end
if not ports then ports = manager.machine.ioport.ports end
local elapsed = now() - start_time
local elapsed = (now() - start_time) / time_scale
while index <= #events and elapsed >= events[index][1] do
local event = events[index]