- fix r_multithreaded 0 not working

This commit is contained in:
Magnus Norddahl 2018-12-18 00:41:46 +01:00
parent efb8e39aa9
commit 64bfb1b905
2 changed files with 3 additions and 3 deletions

View file

@ -140,8 +140,8 @@ void DrawerThreads::WorkerMain(DrawerThread *thread)
// Grab the commands // Grab the commands
DrawerCommandQueuePtr list = active_commands[thread->current_queue]; DrawerCommandQueuePtr list = active_commands[thread->current_queue];
thread->current_queue++; thread->current_queue++;
thread->numa_start_y = thread->numa_node * 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) * viewheight / thread->num_numa_nodes; thread->numa_end_y = (thread->numa_node + 1) * screen->GetHeight() / thread->num_numa_nodes;
start_lock.unlock(); start_lock.unlock();
// Do the work: // Do the work:

View file

@ -55,7 +55,7 @@ public:
// Active range for the numa block the cores are part of // Active range for the numa block the cores are part of
int numa_start_y = 0; int numa_start_y = 0;
int numa_end_y = 0; int numa_end_y = MAXHEIGHT;
// Working buffer used by the tilted (sloped) span drawer // Working buffer used by the tilted (sloped) span drawer
const uint8_t *tiltlighting[MAXWIDTH]; const uint8_t *tiltlighting[MAXWIDTH];