--Code changes

-Clean up Michel's PR.
This commit is contained in:
Person
2020-05-07 06:48:25 -07:00
parent 85be712e7b
commit a07955d12e
3 changed files with 50 additions and 35 deletions

View File

@ -54,6 +54,13 @@ using namespace EmberNs;
//#define TEST_CL 1
//#define TEST_CL_BUFFERS 1
//This special define is made to fix buggy OpenCL compilers on Mac.
//Rendering is much slower there for unknown reasons. Michel traced it down
//to the consec variable which keeps track of how many tries are needed to computer
//a point which is not a bad value. Strangely, keeping this as a local variable
//is slower than keeping it as an element in a global array.
//This is counterintuitive, and lends further weight to the idea that OpenCL on Mac
//is horribly broken.
#ifdef __APPLE__
#define KNL_USE_GLOBAL_CONSEC
#define KNL_USE_GLOBAL_CONSEC
#endif