Skip to content

Quick observation in IJobForEachWithEntity vs IJobChunk in DistanceFieldAttractors #7

@MostHated

Description

@MostHated

Hey there,
I thought the DistanceFieldAttractors demo was pretty neat. I was checking it out and noticed it was using IJobForEachWithEntity and wondered what kind of difference it would make changing it to be IJobChunk. Turns out it was pretty significant. Didn't realize how much of a difference it might make, so it was a nice experiment.

Here was the first go with it as it came out of the box (I added Graphy to see the FPS, it had a shader error for some reason though, I didn't care enough to fix it)
https://i.imgur.com/uFXNb43.gifv

Here was with IJobChunk. You can see the overall FPS difference between the two.
https://i.imgur.com/2TohdS0.gifv

Great demo though, I love that kind of stuff.
Thanks,
-MH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions