first attempt at threading the 3D renderer

This commit is contained in:
StapleButter
2017-05-23 23:38:28 +02:00
parent 88d982b7e3
commit 4b3caedbe7
7 changed files with 176 additions and 405 deletions

View File

@ -380,6 +380,11 @@ void GPU2D::DrawScanline(u32 line)
{
u32* dst = &Framebuffer[256*line];
// request each 3D scanline in advance
// this is required for the threaded mode of the software renderer
if (Num == 0)
GPU3D::RequestLine(line);
line = GPU::VCount;
// scanlines that end up outside of the GPU drawing range