GithubHelp home page GithubHelp logo

Comments (2)

austinksmith avatar austinksmith commented on May 22, 2024

Could you provide a basic code example of your problem? That will help me understand the question better, in general this is useful for computational work only. If you have logic that needs to for example do some multiplication, string manipulation, encryption is the main use case.

On a more technical level, the library can't really help do much with the dom itself as threads are sandboxed environments and cannot access the main window thread or dom at all. They're communicated with through a message passing interface so Im not sure it would work for your problem.

Maybe try something like this will help ;)

setTimeout(function() {
   canvas.render();
}, 4);

Do that in a loop of some sort and wrap the render in a timeout, due to the way timeout works it might give you some async behavior that you want but it won't in general make the dom more performant.

from hamsters.js.

austinksmith avatar austinksmith commented on May 22, 2024

Closing this now, thanks @Sushil-Dhiver

from hamsters.js.

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.