Skip to content

Commit 2c41495

Browse files
committed
moder debug logging
1 parent a76a67c commit 2c41495

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DMD.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ void DMD::DumpDMDTxtThread()
14931493
((m_pUpdateBufferQueue[bufferPosition]->mode == Mode::Data && !dumpNotColorizedFrames) ||
14941494
(m_pUpdateBufferQueue[bufferPosition]->mode == Mode::NotColorized && dumpNotColorizedFrames)))
14951495
{
1496-
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: hanlde frame, mode %d", m_pUpdateBufferQueue[bufferPosition]->mode);
1496+
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: handle frame, mode %d", m_pUpdateBufferQueue[bufferPosition]->mode);
14971497

14981498
bool update = false;
14991499
if (strcmp(m_romName, name) != 0)
@@ -1521,6 +1521,7 @@ void DMD::DumpDMDTxtThread()
15211521
if (name[0] != '\0')
15221522
{
15231523
int length = (int)m_pUpdateBufferQueue[bufferPosition]->width * m_pUpdateBufferQueue[bufferPosition]->height;
1524+
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: handle frame, length %d", length);
15241525
if (update || (memcmp(renderBuffer[1], m_pUpdateBufferQueue[bufferPosition]->data, length) != 0))
15251526
{
15261527
passed[2] = (uint32_t)(std::chrono::duration_cast<std::chrono::milliseconds>(
@@ -1540,6 +1541,8 @@ void DMD::DumpDMDTxtThread()
15401541
}
15411542
if (i == length)
15421543
{
1544+
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: skip transitional frame");
1545+
15431546
// renderBuffer[1] is a transitional frame, delete it.
15441547
memcpy(renderBuffer[1], renderBuffer[2], length);
15451548
passed[1] += passed[2];
@@ -1562,6 +1565,7 @@ void DMD::DumpDMDTxtThread()
15621565
}
15631566
else
15641567
{
1568+
Log(DMDUtil_LogLevel_DEBUG, "DumpDMDTxt: skip duplicate frame");
15651569
dump = false;
15661570
}
15671571
}

0 commit comments

Comments
 (0)