Skip to content

Commit

Permalink
Fixed EFB copying when when FPS > VI/s.
Browse files Browse the repository at this point in the history
  • Loading branch information
sepp256 committed May 28, 2010
1 parent 67ae68a commit 2765ee3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions glN64_GX/VI.cpp
Expand Up @@ -173,22 +173,25 @@ void VI_UpdateScreen()
}
else
{
if (gSP.changed & CHANGED_COLORBUFFER)
/* if (gSP.changed & CHANGED_COLORBUFFER)
{
OGL_SwapBuffers();

VI_GX_cleanUp();
if(VI.updateOSD && gDP.colorImage.changed)
gSP.changed &= ~CHANGED_COLORBUFFER;
}*/
if(VI.updateOSD && (gSP.changed & CHANGED_COLORBUFFER))
{
VI_GX_cleanUp();
VI_GX_showStats();
VI_GX_showFPS();
VI_GX_showDEBUG();
GX_SetCopyClear ((GXColor){0,0,0,255}, 0xFFFFFF);
GX_CopyDisp (VI.xfb[VI.which_fb]+GX_xfb_offset, GX_FALSE);
// GX_CopyDisp (VI.xfb[VI.which_fb]+GX_xfb_offset, GX_FALSE);
GX_CopyDisp (VI.xfb[VI.which_fb]+GX_xfb_offset, GX_TRUE);
GX_DrawDone(); //Wait until EFB->XFB copy is complete
VI.updateOSD = false;
gDP.colorImage.changed = FALSE;
VI.EFBcleared = false;
VI.copy_fb = true;
gSP.changed &= ~CHANGED_COLORBUFFER;
}
}
#endif // __GX__
Expand Down
6 changes: 3 additions & 3 deletions glN64_GX/glN64.cpp
Expand Up @@ -324,9 +324,9 @@ EXPORT void CALL ProcessDList(void)
sprintf(txtbuffer,"\nPROCESS D LIST!!\n\n");
DEBUG_print(txtbuffer,DBG_SDGECKOPRINT);
#endif // GLN64_SDLOG
float color[4] = {0.0f,0.0f,0.0f,0.0f};
OGL_ClearColorBuffer( color );
OGL_ClearDepthBuffer();
// float color[4] = {0.0f,0.0f,0.0f,0.0f};
// OGL_ClearColorBuffer( color );
// OGL_ClearDepthBuffer();
// OGL_GXclearEFB();
// VI_GX_clearEFB();
#endif // __GX__
Expand Down

0 comments on commit 2765ee3

Please sign in to comment.