<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Three.js] BoxHelper - performance issue when updating on Safari."
   href="https://bugs.webkit.org/show_bug.cgi?id=186236">186236</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Three.js] BoxHelper - performance issue when updating on Safari.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 11
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>macOS 10.13
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebGL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>damochramowicz260@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dino@apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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. 

I was able to isolate the test case, and you can see it here: <a href="https://damoch.github.io/three-test/">https://damoch.github.io/three-test/</a>

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.

I've opened issue on three.js issue tracker already -> <a href="https://github.com/mrdoob/three.js/issues/14201">https://github.com/mrdoob/three.js/issues/14201</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>