activate video threading (permanently)

This commit is contained in:
dborth 2008-11-07 08:38:49 +00:00
parent e9b96ec09d
commit 3bde4c1049

View File

@ -247,8 +247,6 @@ GXRModeObj *tvmodes[4] = {
&TV_224p, &TV_448i, /* Snes NTSC video modes */
};
#ifdef VIDEO_THREADING
/****************************************************************************
* VideoThreading
***************************************************************************/
@ -294,8 +292,6 @@ InitVideoThread ()
LWP_CreateThread (&vbthread, vbgetback, NULL, vbstack, TSTACK, 80);
}
#endif
/****************************************************************************
* copy_to_xfb
*
@ -560,9 +556,7 @@ InitGCVideo ()
draw_init ();
#ifdef VIDEO_THREADING
InitVideoThread ();
#endif
// Finally, the video is up and ready for use :)
}
@ -718,12 +712,8 @@ update_video (int width, int height)
vwidth = width;
vheight = height;
#ifdef VIDEO_THREADING
// Ensure previous vb has complete
while ((LWP_ThreadIsSuspended (vbthread) == 0) || (copynow == GX_TRUE))
#else
while (copynow == GX_TRUE)
#endif
{
usleep (50);
}
@ -795,11 +785,8 @@ update_video (int width, int height)
VIDEO_Flush ();
copynow = GX_TRUE;
#ifdef VIDEO_THREADING
// Return to caller, don't waste time waiting for vb
LWP_ResumeThread (vbthread);
#endif
}
/****************************************************************************