Giter Site home page Giter Site logo

Comments (4)

DavidArayan avatar DavidArayan commented on July 23, 2024

For those interested, there is now an experimental feature/threading branch in EzySlice projects and EzySlice-Example-Scenes projects. The API is highly experimental and nowhere near complete, however the main Threading module is complete. I just need to make a decision on the new interface structure which will be needed to get the full benefits of multi-threaded slices.

Once the new interfaces are complete, I'll merge the additions into master branch. Threading is likely to still remain as an optional interface alongside the single-threaded approach.

from ezy-slice.

Karol-G avatar Karol-G commented on July 23, 2024

Hi,
in my application I want to slice multiple objects in parallel, so this sounds really interesting for me.
Is this branch still active?
Will you be able to do something like this then?
Parallel.ForEach(gameObjectList.Cast(), gameObject => {Slicer.SliceThreaded(gameObject , cuttingPlane);});

from ezy-slice.

DavidArayan avatar DavidArayan commented on July 23, 2024

Greetings CookingCookie,

Yes indeed. You can find the threading branch @ Threading Branch. Keep in mind that it is an experimental branch with experimental code and does not contain some of the recent changes in master branch.

I'm currently waiting for the release of the Unity 2018 Job System to see if it's better to leverage Unity's built-in threading API's rather than rolling my own. There are also some complexities around working with the Mesh structure which (as far as I know) can only be created and modified in the main thread.

The idea of the threading addition is of course to allow cutting multiple objects (and multiple submeshes in a single object) in separate threads. I'm still exploring on whats the best method for doing so without degrading performance and making the garbage collector super angry. I'm not happy just slapping API's in a thread and calling it a day.

You are more than welcome exploring the threading branch and providing suggestions, even if they are simple high-level API suggestions (such as, how you'd like to use the API). This will give me ideas on how best to approach the actual implementation.

from ezy-slice.

DavidArayan avatar DavidArayan commented on July 23, 2024

I'm closing this feature request as the idea behind it is redundant. Ideally the slicer framework can move into the Unity3D DOTS system where triangles can be sliced in parallel. This would make for some very performant slices.

from ezy-slice.

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.