mirror of https://github.com/PCSX2/pcsx2.git
parent
8586490162
commit
732d30c919
|
@ -785,12 +785,12 @@ static uint cdvdRotationalLatency(CDVD_MODE_TYPE mode)
|
||||||
|
|
||||||
static uint cdvdBlockReadTime(CDVD_MODE_TYPE mode)
|
static uint cdvdBlockReadTime(CDVD_MODE_TYPE mode)
|
||||||
{
|
{
|
||||||
int numSectors = 0;
|
|
||||||
int offset = 0;
|
|
||||||
|
|
||||||
// CAV Read speed is roughly 41% in the centre full speed on outer edge. I imagine it's more logarithmic than this
|
// CAV Read speed is roughly 41% in the centre full speed on outer edge. I imagine it's more logarithmic than this
|
||||||
if (cdvd.SpindlCtrl & CDVD_SPINDLE_CAV)
|
if (cdvd.SpindlCtrl & CDVD_SPINDLE_CAV)
|
||||||
{
|
{
|
||||||
|
int numSectors = 0;
|
||||||
|
int offset = 0;
|
||||||
|
|
||||||
// Sector counts are taken from google for Single layer, Dual layer DVD's and for 700MB CD's
|
// Sector counts are taken from google for Single layer, Dual layer DVD's and for 700MB CD's
|
||||||
switch (cdvd.Type)
|
switch (cdvd.Type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -97,19 +97,18 @@ int InputIsoFile::FinishRead3(u8* dst, uint mode)
|
||||||
if (m_current_lsn >= m_blocks)
|
if (m_current_lsn >= m_blocks)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int _offset = 0;
|
|
||||||
int length = 0;
|
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
if (m_read_inprogress)
|
if (m_read_inprogress)
|
||||||
{
|
{
|
||||||
ret = m_reader->FinishRead();
|
const int ret = m_reader->FinishRead();
|
||||||
m_read_inprogress = false;
|
m_read_inprogress = false;
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int _offset = 0;
|
||||||
|
int length = 0;
|
||||||
|
|
||||||
switch (mode)
|
switch (mode)
|
||||||
{
|
{
|
||||||
case CDVD_MODE_2352:
|
case CDVD_MODE_2352:
|
||||||
|
|
|
@ -72,7 +72,6 @@ void ThreadedFileReader::Loop()
|
||||||
if (m_quit)
|
if (m_quit)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
void* ptr;
|
|
||||||
u64 requestOffset;
|
u64 requestOffset;
|
||||||
u32 requestSize;
|
u32 requestSize;
|
||||||
|
|
||||||
|
@ -81,7 +80,7 @@ void ThreadedFileReader::Loop()
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
ptr = m_requestPtr.load(std::memory_order_acquire);
|
void* ptr = m_requestPtr.load(std::memory_order_acquire);
|
||||||
requestOffset = m_requestOffset;
|
requestOffset = m_requestOffset;
|
||||||
requestSize = m_requestSize;
|
requestSize = m_requestSize;
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
Loading…
Reference in New Issue