int linesInterlace_user = 0; /* Lines interlace */
bool isSkip = false; /* skip frame (info coming from GPU) */
+bool wasSkip = false;
bool skipFrame = false; /* skip frame (according to frame skip) */
bool alt_fps = false; /* Alternative FPS algorithm */
bool show_fps = false; /* Show FPS statistics */
DisplayArea[0] = (data & 0x000003FF); //(short)(data & 0x3ff);
DisplayArea[1] = ((data & 0x0007FC00)>>10); //(data & 0x000FFC00) >> 10; //(short)((data>>10)&0x1ff);
fb_dirty = true;
+ wasSkip = isSkip;
+ if (isSkip)
+ isSkip = false;
+ else
+ isSkip = skipFrame;
break;
case 0x07:
DisplayArea[4] = data & 0x000003FF; //(short)(data & 0x3ff);
if (!fb_dirty || (GPU_GP1&0x08800000))
return;
- if (!isSkip) {
+ if (!wasSkip) {
blit();
-
fb_dirty = false;
- if (cbs->fskip_advice)
- isSkip = true;
+ skCount = 0;
}
- else
- isSkip = false;
+ else {
+ skCount++;
+ if (skCount >= 8)
+ wasSkip = isSkip = 0;
+ }
+
+ skipFrame = cbs->fskip_advice;
}
long GPUopen(unsigned long *, char *, char *)
TextureWindow[2] = TextureMask[(temp >> 0) & 0x1F];
TextureWindow[3] = TextureMask[(temp >> 5) & 0x1F];
gpuSetTexture(GPU_GP1);
- isSkip = false;
+ //isSkip = false;
DO_LOG(("TextureWindow(0x%x)\n",PRIM));
}
break;
const u32 temp = PacketBuffer.U4[0];
DrawingArea[0] = temp & 0x3FF;
DrawingArea[1] = (temp >> 10) & 0x3FF;
- isSkip = false;
+ //isSkip = false;
DO_LOG(("DrawingArea_Pos(0x%x)\n",PRIM));
}
break;
const u32 temp = PacketBuffer.U4[0];
DrawingArea[2] = (temp & 0x3FF) + 1;
DrawingArea[3] = ((temp >> 10) & 0x3FF) + 1;
- isSkip = false;
+ //isSkip = false;
DO_LOG(("DrawingArea_Size(0x%x)\n",PRIM));
}
break;
const u32 temp = PacketBuffer.U4[0];
DrawingOffset[0] = ((long)temp<<(32-11))>>(32-11);
DrawingOffset[1] = ((long)temp<<(32-22))>>(32-11);
- isSkip = false;
+ //isSkip = false;
DO_LOG(("DrawingOffset(0x%x)\n",PRIM));
}
break;