question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BoxHelper - performance issue when updating on Safari.

See original GitHub issue
Description 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 object
  • updateBox = false disables update of bounding box on every frame
  • helper.update() updates bounding box
  • loadStl(path) loads STL file from path (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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
WestLangleycommented, Jun 2, 2018

@Mugen87 Can you replicate this issue on macOS using the fiddle I posted, which is considerably simpler than the OP’s.

1reaction
damochcommented, Jun 2, 2018

I’ve reported this to WebKit’s bugtracker -> https://bugs.webkit.org/show_bug.cgi?id=186236

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found