Search Unity

[Svelto Framework] Svelto.Tasks – Run Serial and Parallel Asynchronous Tasks in Unity3D

Discussion in 'Scripting' started by sebas77, Oct 2, 2016.

  1. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642
    Hi everyone,

    I completed the work on the new version of my Task Runner library. The new version is faster, has more features since is now Promises compliant and introduce a new way to exploit multithreading with Unity.

    In case you never heard about this library, Svelto.Tasks focuses on introducing a simple way to execute asynchronous tasks running on custom schedulers. A scheduler can run either on the main thread (whenever you want: on update, physic update, late update, start coroutine time) or on different threads. Continuation between threads allows to easily exploit multithreaded routines while keeping the thread unsafe Unity functions running on the main thread.

    I wrote about it on my blog:

    http://www.sebaslab.com/svelto-taskrunner-run-serial-and-parallel-asynchronous-tasks-in-unity3d/

    as usual, feedback are welcome. If you find any problem, let me know.

    New official unity forum thread: https://forum.unity.com/threads/open-source-svelto-tasks.501288/
     
    Last edited: Feb 20, 2018
  2. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642
    An example of the multithreaded feature, I haven't used in production yet, so if you spot something wrong, let me know.

    [Single threaded]



    [Multi threaded]

     
  3. 00jknight

    00jknight

    Joined:
    Mar 28, 2014
    Posts:
    34
    Very interested in trying to improve the performance of my game using this.... We'll see if I can exploit it....
     
  4. anthonyioflux

    anthonyioflux

    Joined:
    Feb 18, 2016
    Posts:
    5
    Good stuff. Going to play around with it a bit.
     
  5. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642