BoxHelper - performance issue when updating on Safari.
See original GitHub issueDescription of the problem
As the title says, Safari literally chokes itself, whenever I try to update BoundingBox of model like 3DBenchy (the framerate is at 4FPS at best). I tried on different Macs (El Capitan, Sierra, High Sierra, with and without external Video Card), and there was the same problem. Funnily enough, whenever i switch to a different browser (like Firefox or Google Chrome) it works with rock solid 60FPS on the same machine. Is there anything, that could be done, or I should just go to WebKit’s bugtracker? I’ve heard, that Safari does not have hardware support for WebGL - could that be the reason for this issue? And finally - thanks for awesome work on threejs 😃
- Example If you open the console, there is “API”, that you can mess around with:
rotate = false
disables rotation of objectupdateBox = false
disables update of bounding box on every framehelper.update()
updates bounding boxloadStl(path)
loads STL file frompath
(I’m not sure if it works). if called without parameter, it loads default file, which is 3DBenchy.stl.
Three.js version
- r93
Browser
- Safari
OS
- macOS (El Capitan, Sierra, High Sierra)
Hardware Requirements (graphics card, VR Device, …)
- I was able to reproduce this on every graphics card, that was built in every iMac/MacBook that i had access to.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Safari and super slow after Big Sur update - Apple Developer
Each time that umount is stuck and Safari is non-responsive, Time Machine was failing to access a disk over the network.
Read more >BoxHelper#update() – three.js docs
update method when the object it's created from is transformed. Note that the object must have a BufferGeometry for this to work, so...
Read more >REGRESSION(iOS 15.4): threejs experiencing critical ...
I work on Mapbox GL-JS. We manually test with new versions of Safari and came across severe performance issues (constant flickering and ...
Read more >Changelog | Kantree Help
... with Kantree logo not being displayed in Webkit based browser (Safari…): ... Fixing an issue with global search groups not being updated...
Read more >JavaScript 3D library
BoxHelper.prototype.setFromObject ( object ); function three.BoxHelper.prototype.update ( object ). module three.BufferAttribute. function three.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mugen87 Can you replicate this issue on macOS using the fiddle I posted, which is considerably simpler than the OP’s.
I’ve reported this to WebKit’s bugtracker -> https://bugs.webkit.org/show_bug.cgi?id=186236