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