- 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
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:

View File

@ -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];