Opengl minSwapTimeMs data race

flagged by thread sanitizer

Where are you making the call from? This might be one of the many OpenGL funcs that needs to be called only from the render thread.

It would be helpful if you could provide some instructions to help us reproduce the issue. Do you see this in any of the example projects (e.g. OpenGLDemo)? Do you have to interact with the app in a specific way in order to trigger the warning?

Looking at this again, the race is on minSwapTimeMs, but this is a std::atomic<int> on develop. It looks like you’re using an older version of JUCE.

Please always test against develop before reporting issues. There’s a reasonable chance that the issue will already have been fixed if you’re using an older version of JUCE.

2 Likes