kDanik/heatmap-unity

Scalability issue

Opened this issue · 2 comments

Hi there!

I'm trying to use this asset for an open-world game. The issue with it however is that this doesn't scale very well. Using it in large scenes will either cause a lot of lag when trying to generate particles or throw an Out of Memory error.

Do you think you could update this to add some sort of scalability so it can work for bigger maps? Maybe a shader could work or splitting up different sections into smaller particle areas automatically.

Thank you!

Hey!

I will see what I can do. Partitioning/Splitting sounds like a good solution, so I can try it out. Shaders will also work, but I have quite low knowledge about them.

Can you share with me the approximate size (in Unity units) and "distance between particles" setting of the heatmap you are trying to create?

Thanks!

Hi there!

I used your example prefab values, but due to the sheer size of my world, it would generate so many particles it would throw an "out of memory" error. I did try all sorts of distance between particle options but nothing seems to fix it!

I love the tool by the way, very good work.

I hope this helps you.