mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 08:25:47 -04:00
DMA: Delay GPU transfers by block count
Needs real GPU timings, but fixes NFS5 in the meantime.
This commit is contained in:
@ -197,6 +197,15 @@ TickCount DMA::GetTransferDelay(Channel channel) const
|
||||
}
|
||||
break;
|
||||
|
||||
case Channel::GPU:
|
||||
{
|
||||
if (cs.channel_control.sync_mode == SyncMode::Request)
|
||||
return cs.block_control.request.GetBlockCount();
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user