
I Replaced Unity’s Particle System - Here's Why and How
When I added flames and smoke to my game using Unity’s Particle Systems, it looked great. So, I did what any reasonable developer would: I turned the dial way up. I mean, how do you tell a Minor Deity they’re allowed fire effects, but only a little bit. Unfortunately, that’s when things went South, especially the frame rate. My immediate future became clear – I needed to understand Particle Systems well enough to extract exactly what I needed. I could then discard them and optimize for my specific use case using burst-compiled jobs.
Unity has competent and useful built-in particle systems, with VFX Graph taking processing to the GPU for insane performance when rendering huge numbers of small, ambient particles that do not require too much interactivity. However, for some special cases I need the functionality of manipulating individual particles in various ways over time, depending on what happens in my environment. While it is possible to fetch particle data from Unity’s built-in particle system, manipulate the data, and update the system, I kept running into performance issues at scale. So, I decided to replace Unity’s particle system and mirror the bits of its functionality that I need. This allowed me to integrate individual particle simulation and behavior into the rest of my dynamic environment for the entire lifetime of the particle. In this video we will consider the different factors at play and walk through the process I followed to determine bottlenecks, understand why they occur and, ultimately, resolve them. We will use wind-reactive flames and smoke as our test cases. And our possible ultimate destination surprised me, so stay tuned for that.
This is the story of implementing what I've learned into a gridless, interactive, world-building sandbox game called Minor Deity.
Minor Deity on Steam: https://store.steampowered.com/app/3876240/Minor_Deity/
Minor Deity Discord Server: https://discord.gg/2NEb4HxwhF
00:00 Introduction
01:07 Contents Summary
02:10 Normals
03:33 The Antagonist
03:57 Wind-Reactive
05:20 One Mesh vs Instancing
06:49 Vertex Data vs Buffers
08:20 Converting Shaders
09:58 Triple Buffering
11:25 Adding Particles
13:23 Simulating Particles
14:10 Culling, Rendering and Removing
16:03 Flickering Problem
17:08 Meshes and UVs
18:01 Sorting
20:52 Further Reducing Workload
21:47 Future Optimizations
22:59 Outro















![[게임 개발 일지 110] 상호작용, 소환창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/HEIS-fMYscs/hqdefault.jpg)
![[게임 개발 일지 112] 검사 파티 공격 모션 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/2dINfOQ2kfE/hqdefault.jpg)
![[게임 개발 일지 109] 던전 관리창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/KV3qkO-dA6A/hqdefault.jpg)

























![[게임 개발 일지 124] 뱀파이어 수녀님 이동 메커니즘 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/tGj3ydtLHGA/hqdefault.jpg)


![던전에 총을 들고 오는 탱커? 이건 반칙 아닌가요? [게임 개발 일지 126] #게임 #1인개발 #indiedev](https://img.youtube.com/vi/RsRNGGwluto/hqdefault.jpg)



















![[게임 개발 일지 122] 뱀파이어 수녀님 스프라이트 시트 구성 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/C56YfTT1ZeQ/hqdefault.jpg)




















![[게임 개발 일지 126] 양 네크로맨서 전투 구현 과정 찐막 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/PkWJ7YDfCd0/hqdefault.jpg)













![[게임 개발 일지 116] 유령 강아지 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SgjsVnw3vP4/hqdefault.jpg)












































![[게임 개발 일지 117] 그림자 고양이 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/3cKKibNQHdU/hqdefault.jpg)


















![[게임 개발 일지 120] 광원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SeLc4Zp6cjc/hqdefault.jpg)









![[게임 개발 일지 115] 형광다람쥐 전투 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/8Z-k2N5Q3Ck/hqdefault.jpg)





























![[게임 개발 일지 125] 뱀파이어 수녀님 공격 메커니즘 구현 과정 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/o0zOC1CY46k/hqdefault.jpg)





























![[게임 개발 일지 123] 뱀파이어 수녀님 순찰 메커니즘 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/OYNTwQ97bcw/hqdefault.jpg)




![창천사, 엘프검사 구현. 거점까지 직접 순찰하도록 수정. [게임 개발 일지 127] #게임 #1인개발 #indiedev](https://img.youtube.com/vi/8hhwAZcgkaY/hqdefault.jpg)



















































![[게임 개발 일지 118] 미믹 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/WuVcQ6Ckoog/hqdefault.jpg)



![[게임 개발 일지 119] 보물창고 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/_qiSCs5ZiCg/hqdefault.jpg)















![[게임 개발 일지 121] 수원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/Sgg87VfToQ0/hqdefault.jpg)










































































































































































































