CDROM: Log slow sector reads in Release builds too
This commit is contained in:
parent
737337a526
commit
998ec85b16
|
@ -131,9 +131,7 @@ bool CDROMAsyncReader::WaitForReadToComplete()
|
||||||
|
|
||||||
void CDROMAsyncReader::DoSectorRead()
|
void CDROMAsyncReader::DoSectorRead()
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
|
||||||
Common::Timer timer;
|
Common::Timer timer;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (m_next_position_set.load())
|
if (m_next_position_set.load())
|
||||||
{
|
{
|
||||||
|
@ -156,10 +154,9 @@ void CDROMAsyncReader::DoSectorRead()
|
||||||
m_last_read_sector = pos;
|
m_last_read_sector = pos;
|
||||||
m_sector_read_result.store(true);
|
m_sector_read_result.store(true);
|
||||||
|
|
||||||
#ifdef _DEBUG
|
const double read_time = timer.GetTimeMilliseconds();
|
||||||
if (timer.GetTimeMilliseconds() > 1.0f)
|
if (read_time > 1.0f)
|
||||||
Log_WarningPrintf("Read LBA %u took %.2f msec", pos, timer.GetTimeMilliseconds());
|
Log_WarningPrintf("Read LBA %u took %.2f msec", pos, read_time);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDROMAsyncReader::WorkerThreadEntryPoint()
|
void CDROMAsyncReader::WorkerThreadEntryPoint()
|
||||||
|
|
Loading…
Reference in New Issue