Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 2400 - Mac: Zoomed in, playback meters slow to respond.
Mac: Zoomed in, playback meters slow to respond.
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.4.0
Mac macOS
: P1 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-04-28 07:52 UTC by Peter Sampson
Modified: 2020-05-10 11:45 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1) Launch 2.4.0 RC03 2) Create a Chirp of 30s, and then apply wah-wah 3) Zoom in to 6 second range 3) Press Play Observe: A: The meters update in a 'laggy' manner, far less than the 30 fps one expects and that prevailed in previous versions.
Release Note:
Group: Metering *On some Macs the Playback meters can be visibly slow to respond to peaks.
First Git SHA:
Group: ---
Workaround:
None
Closed: 2020-05-10 00:00:00
petersampsonaudacity: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
james.k.crook: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2020-04-28 07:52:46 UTC
Bill wrote in a Quality email thread on 2.4.0 RC testing RC03
>The playback meters seem slow to respond. It’s very disconcerting. 
>In 2.3.3 the meters react quickly to the peaks, but in 2.4.0 they don’t.
>
>iMac 5K retina 27” 2019, 3 GHz core i5,16GB RAM, fusion drive.

Cliff and I do not observe this on our Macs - I tested with a normal song audio and with a Rhythm track with well-spaced clicks
Comment 1 James Crook 2020-04-28 11:34:51 UTC
*** STEPS UPDATED ***
Title updated too, as it is probably all macs.
Comment 2 Bill Wharrie 2020-04-28 12:01:00 UTC
I've also observed that the lagginess correlates with the zoom level. With less than 15 minutes showing on the time line the meters behave normally. Zoomed in beyond that the meters are slow.
Comment 3 Peter Sampson 2020-04-28 12:12:01 UTC
I generate a test click track 
Tempo 30
Beats per bar 1
This gives me a click every two seconds.

I undock the Playback meter and stretch it to full screen width and float it over the click track.

At all zoom levels that I use I observe no lag - as soon as the cursor gets to the click, the meter bounces.
Comment 4 James Crook 2020-04-28 12:30:56 UTC
I have tried my steps again, and various variations to refine the steps, and am wondering if I imagined the poor refresh.  It wasn't the lag so much as what seemed like few frames per second - unsmooth movement.  Trying again I'm asking for 30fps and I don't think it is 30fps, but it is acceptable/normal- i.e I'm not seeing the bug now.  

Bill can you clarify...

1) How long is your actual audio.
2) How long is the section that is on screen.
3) How long is the selection

Is this from a default settings (other than a long meter) or do you have other things different such as a pinned play head?
Comment 5 Steve Daulton 2020-05-04 05:34:11 UTC
We are receiving a number of reports of slow performance when using Audacity full screen on retina displays:
https://forum.audacityteam.org/viewtopic.php?f=47&t=94064
Comment 6 Leland Lucius 2020-05-10 03:42:52 UTC
(Copied from one of the email threads)

Here’s the wxWidgets bug for this slowness:

https://trac.wxwidgets.org/ticket/18516

The Instruments profile shown is the same thing we get with Audacity.  In his report, he thinks the problem is related to 24-bit and 32-bit conversions since his display only supports 24-bit and wxWidgets forces the bitmaps to 32-bit.  I’m not so sure that’s it though as I’ve tried changing wxWidgets to use 24-bit bitmaps and it didn’t seem to make a difference (I most certainly could have done it incorrectly though!).

The gimp folks complaint is here:

https://gitlab.gnome.org/GNOME/gimp/issues/4130

And the Inkspace one is here:

https://gitlab.com/inkscape/inbox/-/issues/1577

Other folks have complained as well.  You can google “Mojave CGContextDrawImage” to see some of the complaints.  Some folks think it’s the updates to Layers, some think it’s the color depth (like above), some think it’s the color space, bit I’ve yet to find a REAL solution that is within my abilities to resolve.
Comment 7 Leland Lucius 2020-05-10 03:43:27 UTC
Workaround provided by:

https://github.com/audacity/audacity/commit/4b1d5c3
Comment 8 Peter Sampson 2020-05-10 07:07:57 UTC
(In reply to Steve Daulton from comment #5)
We are receiving a number of reports of slow performance when using Audacity full screen on retina displays:
https://forum.audacityteam.org/viewtopic.php?f=47&t=94064

I note from that thread that the original report was back in December 2016 on Audacity 2.1.2 and we apparently did nothing about it (presumably because none of us could reproduce this on our Macs at the time.

It took us until 2.4.0 RC03 to actually pick up on this through testing ...
Comment 9 Peter Sampson 2020-05-10 07:27:10 UTC
(In reply to Leland Lucius from comment #7)
Tested on macOS 10.15.4 on my MacBook Pro with Audacity 2.4.0 4b1d5c3

This continues to work fine on my Mac. 

Tested with a click tack with a 2 second gap between clicks zoomed in to show ~6 seconds on screen - with a 3 minute click track, no drift at the end - full synchronicity of screen drawing cursor, meters and sound.
Comment 10 James Crook 2020-05-10 11:45:38 UTC
Tested by Bill, and RESOLVED-FIXED (with Rc06).
Also confirmed timings much improved on James' mac-mini.