mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
PicoVideoRead optimization
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@511 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
2aa27095f2
commit
9761a7d0d4
10 changed files with 90 additions and 64 deletions
|
@ -218,7 +218,8 @@ PICO_INTERNAL int CheckDMA(void)
|
|||
if(Pico.video.reg[12] & 1) dma_op |= 4; // 40 cell mode?
|
||||
if(!(Pico.video.status&8)&&(Pico.video.reg[1]&0x40)) dma_op|=8; // active display?
|
||||
xfers_can = dma_timings[dma_op];
|
||||
if(xfers <= xfers_can) {
|
||||
if(xfers <= xfers_can)
|
||||
{
|
||||
if(dma_op&2) Pico.video.status&=~2; // dma no longer busy
|
||||
else {
|
||||
burn = xfers * dma_bsycles[dma_op] >> 8; // have to be approximate because can't afford division..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue