From 64bfb1b90521d548ee1d648c93a5b4df5b8e2a32 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 18 Dec 2018 00:41:46 +0100 Subject: [PATCH] - fix r_multithreaded 0 not working --- src/swrenderer/drawers/r_thread.cpp | 4 ++-- src/swrenderer/drawers/r_thread.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/swrenderer/drawers/r_thread.cpp b/src/swrenderer/drawers/r_thread.cpp index 5aa157f272..5055e259b1 100644 --- a/src/swrenderer/drawers/r_thread.cpp +++ b/src/swrenderer/drawers/r_thread.cpp @@ -140,8 +140,8 @@ void DrawerThreads::WorkerMain(DrawerThread *thread) // Grab the commands DrawerCommandQueuePtr list = active_commands[thread->current_queue]; thread->current_queue++; - thread->numa_start_y = thread->numa_node * viewheight / thread->num_numa_nodes; - thread->numa_end_y = (thread->numa_node + 1) * viewheight / thread->num_numa_nodes; + thread->numa_start_y = thread->numa_node * screen->GetHeight() / thread->num_numa_nodes; + thread->numa_end_y = (thread->numa_node + 1) * screen->GetHeight() / thread->num_numa_nodes; start_lock.unlock(); // Do the work: diff --git a/src/swrenderer/drawers/r_thread.h b/src/swrenderer/drawers/r_thread.h index f2d1d4d0eb..f12193a49f 100644 --- a/src/swrenderer/drawers/r_thread.h +++ b/src/swrenderer/drawers/r_thread.h @@ -55,7 +55,7 @@ public: // Active range for the numa block the cores are part of int numa_start_y = 0; - int numa_end_y = 0; + int numa_end_y = MAXHEIGHT; // Working buffer used by the tilted (sloped) span drawer const uint8_t *tiltlighting[MAXWIDTH];