You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
[macOS] Performance issues on Macbook (early 2016) #7820
When running the latest macOS demo app, there are some performance issues on my Macbook.
I have recorded this using Quicktime player and you can download a mov file here: Dropbox Link
Of course the Macbook doesn't have a lot of power, but what strikes me as odd is that I see heavy CPU usage while zooming and scrolling but almost no GPU usage (I am using iStat menus for this). The CPU is of course a very limiting factor on this machine (only 2 cores iirc).
There are two things to note in the recording:
I am using the trackpad to very smoothly zooming in and out (The sudden changes in zoom are not because of my sudden behavior)
When blanketing the map with pins there is lots of flickering. Sometimes this is not only the pins, but also the map flickering white.
Both problems vary in intensity when repeating the test.
I can also replicate this behavior with the integrated GPU of a quad core Macbook Pro 2016. When rendering locks up, I'm not seeing heavy CPU usage (~2%) though.
I tested this with a patched version of GLFW that supports integrated GPUs, and got flawless, fast rendering with the built-in GPU. This leads me to believe that there's something we're doing wrong when initializing our OpenGL context.
Probably unlike GLFW, we're rendering onto a layer-backed view, which on macOS means WindowServer has to do compositing for the view. (This enables things like visual effect views and the attribution view, similar to on iOS.) What happens if you turn off layer-backing? (Turn off "full window content view" in NSWindow's Attributes inspector and ensure no views are selected in the Effects inspector.)
Activity
friedbunny commentedon Jan 23, 2017
I see similar performance issues on my MacBook Pro (Retina, 13-inch, Early 2015).
1ec5 commentedon Jan 24, 2017
This sounds like #7616, which also affects iOS SDK v3.4.0 and has been fixed on the master branch for v3.5.0 and v0.4.0.
1ec5 commentedon Jan 25, 2017
Sounds like #7834 could be the cause in that case.
kkaefer commentedon Jan 25, 2017
I can also replicate this behavior with the integrated GPU of a quad core Macbook Pro 2016. When rendering locks up, I'm not seeing heavy CPU usage (~2%) though.
kkaefer commentedon Jan 25, 2017
(#7834 allows testing the integrated GPU on dual-GPU Macs)
kkaefer commentedon Jan 25, 2017
I tested this with a patched version of GLFW that supports integrated GPUs, and got flawless, fast rendering with the built-in GPU. This leads me to believe that there's something we're doing wrong when initializing our OpenGL context.
1ec5 commentedon Jan 25, 2017
Probably unlike GLFW, we're rendering onto a layer-backed view, which on macOS means WindowServer has to do compositing for the view. (This enables things like visual effect views and the attribution view, similar to on iOS.) What happens if you turn off layer-backing? (Turn off "full window content view" in NSWindow's Attributes inspector and ensure no views are selected in the Effects inspector.)
1ec5 commentedon Jan 26, 2017
By the way, I just cherry-picked #7834 into the release-ios-v3.4.0 branch (for v0.3.1) as #7861.
kkaefer commentedon Feb 9, 2017
Same, super sluggish behavior.
20 remaining items
reza-ebrahimi commentedon Mar 26, 2018
I have to confirm this problem on iOS and macOS #11518
stale commentedon May 7, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.