From 8fff5b875428ec36851814729d729ec66dc9d6f1 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 4 Jan 2021 10:42:52 +0800 Subject: [PATCH] Disable CPU mask in zone lighter --- nel/src/3d/zone_lighter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nel/src/3d/zone_lighter.cpp b/nel/src/3d/zone_lighter.cpp index 570ba1075..0ba8c2b95 100644 --- a/nel/src/3d/zone_lighter.cpp +++ b/nel/src/3d/zone_lighter.cpp @@ -350,7 +350,7 @@ void setCPUMask (IThread *thread, uint process) } // Set the CPU mask - thread->setCPUMask (1<setCPUMask (1<processCalc (_Process, *_Description); _ZoneLighter->_ProcessExitedMutex.enter(); @@ -624,7 +624,7 @@ void RenderTriangle (const CZoneLighter::CTriangle &triangle, const CZoneLighter void NL3D::CRenderZBuffer::run() { // Set the CPU mask - setCPUMask (Thread, _Process); + // setCPUMask (Thread, _Process); // Span array CPolygon2D::TRasterVect borders; @@ -927,7 +927,7 @@ void CZoneLighter::light (CLandscape &landscape, CZone& output, uint zoneToLight // Backup thread mask IThread *currentThread = IThread::getCurrentThread (); uint64 threadMask = currentThread->getCPUMask(); - currentThread->setCPUMask (1); + // currentThread->setCPUMask (1); // Calc the ray basis _SunDirection=description.SunDirection; @@ -1219,7 +1219,7 @@ void CZoneLighter::light (CLandscape &landscape, CZone& output, uint zoneToLight } // Reset old thread mask - currentThread->setCPUMask (threadMask); + // currentThread->setCPUMask (threadMask); // overflow ? if (_ZBufferOverflow)