BadGraphixD / How-many-Boids-can-Unity-handle

Collection of different boid simulation implementations in unity. Includes: implementation with GameObjects, with ECS only, with ECS and Unity Jobs combined with Burst Compiler (2 different approaches).
MIT License
40 stars 15 forks source link

IJobNativeMultiHashMapMergedSharedKeyIndices deprecated #1

Open ArthurvS opened 2 years ago

ArthurvS commented 2 years ago

Hi BadgraphixD,

First and formost, thnx for this amazing project! It runs extremly well and the code is very clear and easy to adjust. I just struggle with a minor problem, in de last two years ECS has made some amazing steps and I am trying to change to code to work with a newer version, especially because a lot of features from HDRP and URP work in the newer version. But the following function has been removed from Jobs and I can not figureout how to replace it:

IJobNativeMultiHashMapMergedSharedKeyIndices

Could you maybe be of help with updating this project to a newer version of DOTS since it would be of a lot of help for probably more people than just me

BadGraphixD commented 2 years ago

Hi ArthurvS, I've tried to find a solution to your problem, specifically a replacement for IJobNativeMultiHashMapMergedSharedKeyIndices, but I haven't been able to rewrite that section of the code yet. I haven't used Unity and specifically DOTS in over a year now, so I'm not really up to date with the newer versions. I found this thread, which might help you. From what I understand, it's possible to use the old implementation from before IJobNativeMultiHashMapMergedSharedKeyIndices was removed and implement it yourself. But I haven't had the time to try that out so far. Hope this helps!

ArthurvS commented 2 years ago

Hi BadgraphixD,

Thank you for giving it a try! I'll have a look at the thread you have send and make a pull request if i can get it to work in a newer version of DOTS. Again a lot of thanks for making this project and for helping me find a solution!