mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
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.
This commit is contained in:
parent
9a12baf6b2
commit
72f1be6bca
@ -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)
|
||||
|
@ -166,16 +166,7 @@ video_manager::video_manager(running_machine &machine)
|
||||
// extract snap resolution if present
|
||||
if (sscanf(machine.options().snap_size(), "%dx%d", &m_snap_width, &m_snap_height) != 2)
|
||||
m_snap_width = m_snap_height = 0;
|
||||
|
||||
// start recording movie if specified
|
||||
const char *filename = machine.options().mng_write();
|
||||
if (filename[0] != 0)
|
||||
begin_recording(filename, MF_MNG);
|
||||
|
||||
filename = machine.options().avi_write();
|
||||
if (filename[0] != 0)
|
||||
begin_recording(filename, MF_AVI);
|
||||
|
||||
|
||||
// if no screens, create a periodic timer to drive updates
|
||||
if (no_screens)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user