How to properly use M1 ProMotion with Juce 7

Hey.
Thanks for reply. I’ve already tested VBlankAttachment class, and it’s really great.

But as I found on other thread there is lack of information about exact refreshing interval. It seems reasonable becaous as I’ve heard in example on new Macbooks the refreshing interval can change in dependency of current graphics/animation to display.

But due to that fact I still have problem with drawing audio wave form played by host. Because I can’t synchronise my drawing reading head with writing head (by head I mean some int index which read buffer in cycle).

Of course I can use exactly the same int variable to write and read, and then it works perfectly. But in that case the problem is that many host stop calling processBlock when host’s playhead is stopped. And I move write head in processBlock. So when it stops then my waveform also stops and looks like it is frozen.

So I am still looking how to solve that.

But in all other cases in my projects, the VBlankAttachment is really great.

1 Like