Disable CPU mask in zone lighter

develop
kaetemi 4 years ago
parent 00520d6c11
commit 8fff5b8754

@ -350,7 +350,7 @@ void setCPUMask (IThread *thread, uint process)
}
// Set the CPU mask
thread->setCPUMask (1<<i);
// thread->setCPUMask (1<<i);
}
}
@ -379,7 +379,7 @@ public:
void run()
{
// Set the CPU mask
setCPUMask (Thread, _Process);
// setCPUMask (Thread, _Process);
_ZoneLighter->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)

Loading…
Cancel
Save