-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
MAME version
0.283 (LLP64)
System information
Windows 11 Pro 10.0.26200
64 GB RAM
BGFX
English
INI configuration details
Emulated system/software
No response
Incorrect behaviour
Callback functions registered in LUA scripts/plugins using emu.register_periodic are not triggered regularly while MAME is stopped in the MAME Debugger. The callback is triggered on windows inputs such as mouse movement. On Linux the callbacks are invoked regularly regardless of the debugger state.
Expected behaviour
Periodic events should be triggered regardless of the MAME debugger state.
Steps to reproduce
On Windows:
- Create a simple LUA script to register a periodic function that logs to the console to demonstrate the issue
- Launch MAME with the script using the -script and -debug option
- Notice that the LUA script is logging to the console fairly rapidly
- Break into the debugger
- Notice that the logging either slows down or stops depending one where the mouse is. Regardless of the mouse location, moving the mouse will kickstart the messages being logged but stop/slowdown as soon as you stop moving the mouse.
- Resume from the debugger and the messages start to flow again
The issue is in debugwin.cpp GetMessage is blocking waiting for a windows message to arrive, this blocks the loop that generates calls emulator_info::periodic_check();
Additional details
No response
Metadata
Metadata
Assignees
Labels
No labels