-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Significant performance regression in MacOS Safari 14.1.2 #6133
Comments
When you say "regression", are you comparing to earlier versions of deck.gl, or earlier versions of Safari? Although Safari is not as good as Chrome in WebGL compatibility and performance, it's not that far off. Something you should try are:
glOptions: {powerPreference: 'high-performance'}
I do not think so: https://browserslist.dev/?q=PjElIGluIHVz |
@Pessimistress hey thank you for reply As I said I use app build on top of deck.gl on daily basis, performance in Safari was great. Somewhere mid summer after time off I realised that everything become very slow; I think it's regression after updating to Safari 14.1.1 or 14.1.2 which came with automatic update. I did simple example with deck.gl to localise problem, see links above. It's does nor reproduce on iOS but does reproduce on 2 other Mac Books I could access to try. Used browser share from here https://gs.statcounter.com/browser-market-share you are right about mobile, but there is still 18% (second most popular browser) I will try suggested solution and update here |
Tried suggested solutions:
|
Removing the bug label since this is a not a breakage in our code base. We make our best effort to follow WebGL best practice but the outcome is always bound by the performance of the browser itself. Regarding Safari, it's always been a bit of a moving target, with its lagging-behind support for WebGL specs, and hardware-specific shader compilation bugs as Macs cruised through various chip providers. I do not have a MacBook myself and I am unable to reproduce the reported issue on my desktop. If a localized performance bottleneck in Safari could be identified, we would patch it as long as the impact to other platforms is low. I suspect it's not worth the effort to investigate given that Safari 15 is coming in a few weeks with a reengineered WebGL engine. Thank you for bringing this to our attention but I do not see a clear action item at this moment. |
Actually, can you share the information that you see in https://webglreport.com/?v=1 in Safari? |
Results from https://webglreport.com/?v=1
|
@Pessimistress performance in Safari 15 unfortunately is the same |
It seems that the problem applies to all WebGL applications: https://discourse.threejs.org/t/horrible-3d-three-js-performance-in-latest-safari-on-macos/25940/10 I understand how frustrating this issue is for you, but at this moment it's not clear to me what we can do to make it better. Some steps you can take to narrow in on the problem are:
If you can find that e.g. some layers work better than others, or even some other libraries work better, then we may be able to identify a work around. However, if WebGL performance in Safari all across the board is low, then it's not something we can fix in JavaScript, and you should really report it as a bug to WebKit. |
found one example with same big difference https://threejs.org/examples/#webgl_animation_keyframes other example seems fine (60 FPS) I did file a bug to Safari (https://webkit.org/reporting-bugs/ says Safari is not WebKit) 10 days ago; latest WebKit release crashes on my laptop |
cc @ibgreen and @alasarr |
I updated my Safari to 14.1.2 and can reproduce with the original codepen (https://codepen.io/delfrrr/pen/oNwgrNw). Safari is quite significantly slower than Chrome when zooming in and out. This persists even when forcing the discrete GPU with gfx.io. (I forgot to test with the previous 14.0.x version of Safari I had installed previously). Versions: macOS Big Sur 11.5.2
Graphics cards:
|
With your test repo, can you try clearing the lock file and pull the latest The pre-bundled version does not include the latest changes. |
@Pessimistress tested with I could localise issue better and understand why I did not observe it before in Safari!
|
Interesting discovery... could you try adding |
I would not say
makes it at least 2-3x faster; still laggy but almost usable |
Description
I've notice significant performance regression while using dekart.xyz (open source data-analytics built on top of deck.gl); Presumably it happens after minor MacOs update.
In a same time (same OS and same hardware) Chrome performance is not affected.
To reproduce the issue I've created example with
H3HexagonLayer
(22k rows of data) based on deck.gl provided examples to make sure problem is with deck.gl and not something else. I've addedstats.js
to show FPS dropLink to example https://github.com/dekart-xyz/deck.gl/tree/slow-safari/examples/get-started/pure-js/slow-safari
In Safari FPS drops to below 10 when zooming in/out
In Chrome FPS is not affected when zoom in/out
PLEASE NOTE: Safari is 18% worldwide and 35% in US. Currently all deck.gl visualisations are not usable in Safari! I was able to reproduce this issues on 3 different MacBooks
Expected Behavior
No FPS drops when zooming in and zooming out
Repro Steps
Environment
Logs
Nothing special in logs
The text was updated successfully, but these errors were encountered: