Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick observation in IJobForEachWithEntity vs IJobChunk in DistanceFieldAttractors #7

Open
MostHated opened this issue Sep 26, 2019 · 3 comments

Comments

@MostHated
Copy link

MostHated commented Sep 26, 2019

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

@drywolf
Copy link

drywolf commented Feb 23, 2020

@MostHated Which version / branch of the DistanceFieldAttractors sample did you use to get this working (which unity version) ?
All I'm getting for this sample are dozends of compile error so far, would really love to experiment with it 😞

@MostHated
Copy link
Author

Oh, man, I wish I could tell you. I had used whatever version was the most current at the time, but it was 5 months ago, so I can't remember what it was then and have since built a new PC and didn't bother backing up any github sample projects or anything, so I can't look back at what it was.

@drywolf
Copy link

drywolf commented Feb 23, 2020

Thanks for the reply nonetheless :)
For anyone else possibly interested in this sample ... I just got it working on the branch sschoener/DistanceFieldAttractors (commit 7695c2f) with Unity 2019.3.2f1 without any extra modifications.
I think I tried this one before but with a different version of unity which was not compatible with the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants