diff options
| author | 2019-10-01 23:08:17 +0300 | |
|---|---|---|
| committer | 2019-10-03 03:43:17 +1000 | |
| commit | 72f1be6bca6bd7a476d34a3e7679e2ad875fda30 (patch) | |
| tree | 5bc5a4148a7ba97b91ad767df84afb0e6480e2c0 /src/emu/machine.cpp | |
| parent | 9a12baf6b2c84feb89eb5d264a54ee7ccb9541ed (diff) | |
Fix AVI framerate
MAME was setting up AVI before devices have properly launched, so default 60fps was used, which resulted in skipped frames in the video if machine's framerate is above 60 (btoads), and presumably duplicate frames for machines below 60fps (haven't tested).
Now every frame that is generated is also present in the video.
Diffstat (limited to 'src/emu/machine.cpp')
| -rw-r--r-- | src/emu/machine.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 68bf7dc74d9..1b00ddfcfd9 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -265,6 +265,15 @@ void running_machine::start() save().register_postload(save_prepost_delegate(FUNC(running_machine::postload_all_devices), this)); manager().load_cheatfiles(*this); + // start recording movie if specified + const char *filename = options().mng_write(); + if (filename[0] != 0) + m_video->begin_recording(filename, video_manager::MF_MNG); + + filename = options().avi_write(); + if (filename[0] != 0) + m_video->begin_recording(filename, video_manager::MF_AVI); + // if we're coming in with a savegame request, process it now const char *savegame = options().state(); if (savegame[0] != 0) |
