Saturday, July 18, 2015

AsyncCoroutines - Rather Easy Multithreading for Unity

This is a tiny little library to help you use your multicore CPU in Unity3D.
I've made a brief video overview and the package will be available on the asset store very soon.
It includes a task viewer, which is similar to the process viewer on your operating system. It shows which coroutines are running in the background and foreground, which coroutines are waiting for execution, and how many CPU ticks each coroutine consumes per frame.


To use, make sure you have:
using AsyncCoroutines;
at the top of your script file. Below is an example of a coroutine method which can be started using:
gameObject.StartTask(MyCoroutine());
IEnumerator MyCoroutine() {
    //this statement will move the execution to the background thread
    //pool.
    yield return Schedule.GotoBackground;
    //Do some work here
        
    //This statement will move the execution back into the main unity
    //foreground thread.
    yield return Schedule.GotoForeground;

    //When the coroutine is running in the main thread, yield statements
    //will work as normal.
    yield return null;
    yield return WaitForSeconds(1);
}

Tuesday, July 14, 2015

3D Conference in Perth on 22/07/15

An interesting conference for 3D tech next week is happening in Perth. It's only short, 7:30AM - 2PM, however there is some interesting stuff happening. A realtime 3D scan of a Ducati, 3D printing and Oculus VR... I'm 90% sure I'll be there.

More info and registration here.

Tuesday, July 07, 2015

Behaviour and Decision Library for Unity

uBAD is a library for programmers to create AI based on behaviour tree systems. Instead of using a graphical editor to define the tree, it uses a text file with a simple syntax. It includes a visual debugger.

Popular Posts