mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OpenGL: Avoid race on minSwapTimeMs
This commit is contained in:
parent
7650a96092
commit
e751a5edd7
1 changed files with 2 additions and 1 deletions
|
|
@ -248,7 +248,8 @@ public:
|
|||
NSOpenGLView* view = nil;
|
||||
ReferenceCountedObjectPtr<ReferenceCountedObject> viewAttachment;
|
||||
double lastSwapTime = 0;
|
||||
int minSwapTimeMs = 0, underrunCounter = 0, numFramesPerSwap = 0;
|
||||
std::atomic<int> minSwapTimeMs { 0 };
|
||||
int underrunCounter = 0, numFramesPerSwap = 0;
|
||||
double videoRefreshPeriodS = 1.0 / 60.0;
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue