Giter Club home page Giter Club logo

Comments (6)

DeeElGee avatar DeeElGee commented on May 21, 2024 1

Yeah, support isn't as strong yet, but I'm sure it'll come. I think you would still have to implement a webworker to get the most out of it. But the Three example I've shared seems relatively straight forward.

Also, in terms of supprt, Chrome seems to oddly be the most affected browser, from what we've seen, and it has the most to gain. Thanks, would be super helpful, I believe.

from enable3d.

yandeu avatar yandeu commented on May 21, 2024

I have never heard of it. Can you quickly explain what it is and for what it can be useful for enable3d?

from enable3d.

DeeElGee avatar DeeElGee commented on May 21, 2024

Basically it means you can render to canvas without needing to have access to the DOM. As a result, you can implement a webworker to do your rendering (like the example above) which means it can be multithreaded. See https://developers.google.com/web/updates/2018/08/offscreen-canvas

Until now, canvas drawing capabilities were tied to the element, which meant it was directly depending on the DOM. OffscreenCanvas, as the name implies, decouples the DOM and the Canvas API by moving it off-screen.

Thanks to this decoupling, rendering of OffscreenCanvas is fully detached from the DOM and therefore offers some speed improvements over the regular canvas as there is no synchronization between the two. What is more, though, is that it can be used in a Web Worker, even though there is no DOM available. This enables all kinds of interesting use cases.

from enable3d.

yandeu avatar yandeu commented on May 21, 2024

I see. It seems not to be as well supported as normal Web Workers. But I'll see what I can do :)

from enable3d.

github-actions avatar github-actions commented on May 21, 2024

This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 10 days.

from enable3d.

github-actions avatar github-actions commented on May 21, 2024

This issue was closed because it has been stalled for 10 days with no activity.

from enable3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.