Skip to content

Use Noise High-Effeciently in Unity with Burst Compiler & Jobs System. #18

@Dreamtowards

Description

@Dreamtowards

I choose FastNoiseLite library among lots of noise libraries. due it's author is professional at noise gen, see his FastNoiseSIMD C++ projects. and it cross multiple languages, and it's a single file library.

but if you directly put it in IJob, the burst compiler won't pass it.
image

so i modified it to a struct instead of a class.
image
P.S. i also moved all field-initializer into the constructor since current c# 9.0 is not support field-initializer (won't pass compile)

and after that, the burst compilation just passed.
image


by the way, i just wrote a Wrapper NoiseGen class, which have a bunch of Properties with Getter/Setter & they are Serializable so you can edit the Properties in the Inspector panel easily and the properties can be saved.
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions