frames = 0 sub = emu.add_machine_frame_notifier(function() frames = frames + 1 if frames == 300 or frames == 600 then manager.machine.video:snapshot() end if frames == 600 then local s = manager.machine.screens for tag, scr in pairs(s) do print("SCREEN " .. tag .. " " .. scr.width .. "x" .. scr.height .. " " .. string.format("%.4f", scr.refresh)) end manager.machine:exit() end end)