JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Running code in workerthread

    Scheduled Pinned Locked Moved Development Discussions
    5 Posts 3 Posters 1.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bitbybit
      last edited by

      Amazing library, V2 works really well, testing modelling part a lot on https://bitbybit.dev website. Mainly just a question if running V2 JSCAD algorithms, especially boolean operations in worker threads is possible and if so, what approach could be taken to do it? Sorry if question should have been placed to a different part of the forum.

      z3devZ 1 Reply Last reply Reply Quote 0
      • BarbourSmithB Offline
        BarbourSmith
        last edited by BarbourSmith

        I've been doing it with no issues at all. The npm packages make it easy using this library and webpack: https://github.com/josdejong/workerpool

        Edit: Here's an example project: https://github.com/alzatin/JSCAD-worker

        B 1 Reply Last reply Reply Quote 0
        • z3devZ Offline
          z3dev @bitbybit
          last edited by

          @bitbybit thanks! V2 JSCAD is definitely improving now.

          I think several people are working with V2 libraries to create some 'custom' websites.

          I'm also working on some reactive components for VUE. Hopefully, this will help people get moving faster.

          https://github.com/z3dev/vue-components

          There's just one issue... the 'core' package needs to be wrapped properly. I have some changes coming soon, but let us know if you hit some issues.

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bitbybit @BarbourSmith
            last edited by

            @BarbourSmith thanks! Will check that out, this should be a great improvement on UX part and hopefully have a few performance benefits. Could you share your experience on performance part maybe?

            1 Reply Last reply Reply Quote 0
            • B Offline
              bitbybit @z3dev
              last edited by

              @z3dev yeah, I went 'custom' way before I found JSCAD, I began by exposing VerbNurbs library first and implemented BabylonJS rendering 🙂 but JSCAD adds so much to the project that I'm super enthusiastic about it. Vue part sounds very interesting. While I'm not very familiar with Vue, I suppose by reactive you mean Rxjs kind of reactive? Will have to analyse your project in more detail, thanks!

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Powered by NodeBB | Contributors