-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Description
ScreenSpaceAmbientOcclusion:28
static int temporalIndex = 0;
You do NOT ever ever ever ever ever ever ever ever ever use statics to store persistent class-scope read-write data, because it is ugly. Furthermore, it will crash as soon as two instances of the class exist, especially in a multithreaded environment. And no, thread_local is just as bad.
Reactions are currently unavailable