@@ -1465,6 +1465,7 @@ void DMD::DumpDMDTxtThread()
14651465
14661466 Config* const pConfig = Config::GetInstance ();
14671467 bool dumpNotColorizedFrames = pConfig->IsDumpNotColorizedFrames ();
1468+ bool filterTransitionalFrames = pConfig->IsFilterTransitionalFrames ();
14681469
14691470 while (true )
14701471 {
@@ -1493,8 +1494,6 @@ void DMD::DumpDMDTxtThread()
14931494 ((m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data && !dumpNotColorizedFrames) ||
14941495 (m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized && dumpNotColorizedFrames)))
14951496 {
1496- Log (DMDUtil_LogLevel_DEBUG, " DumpDMDTxt: handle frame, mode %d" , m_pUpdateBufferQueue[bufferPosition]->mode );
1497-
14981497 bool update = false ;
14991498 if (strcmp (m_romName, name) != 0 )
15001499 {
@@ -1521,15 +1520,14 @@ void DMD::DumpDMDTxtThread()
15211520 if (name[0 ] != ' \0 ' )
15221521 {
15231522 int length = (int )m_pUpdateBufferQueue[bufferPosition]->width * m_pUpdateBufferQueue[bufferPosition]->height ;
1524- Log (DMDUtil_LogLevel_DEBUG, " DumpDMDTxt: handle frame, length %d" , length);
15251523 if (update || (memcmp (renderBuffer[1 ], m_pUpdateBufferQueue[bufferPosition]->data , length) != 0 ))
15261524 {
15271525 passed[2 ] = (uint32_t )(std::chrono::duration_cast<std::chrono::milliseconds>(
15281526 std::chrono::steady_clock::now () - start)
15291527 .count ());
15301528 memcpy (renderBuffer[2 ], m_pUpdateBufferQueue[bufferPosition]->data , length);
15311529
1532- if (m_pUpdateBufferQueue[bufferPosition]->depth == 2 &&
1530+ if (filterTransitionalFrames && m_pUpdateBufferQueue[bufferPosition]->depth == 2 &&
15331531 (passed[2 ] - passed[1 ]) < DMDUTIL_MAX_TRANSITIONAL_FRAME_DURATION)
15341532 {
15351533 int i = 0 ;
0 commit comments