Тёмный

Improve Performance 10x Using GPU Instancing || Unity Tutorial 

Freedom Coding
Подписаться 3,3 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@wulf1540
@wulf1540 10 месяцев назад
You provide some very helpful information. I suggest making a video about LOD, Multi-threading and render distance. All of these things will help optimize everyone's projects.
@freedomcoding
@freedomcoding 10 месяцев назад
I am glad it was helpful! On Friday, you can expect a tutorial about DOTS.
@captaincommando9839
@captaincommando9839 7 месяцев назад
Exactly what I needed, you just provided my CPU freedom from the bondage of 1000s of gameobjects.
@freedomcoding
@freedomcoding 7 месяцев назад
I am glad it was useful!
@captaincommando9839
@captaincommando9839 7 месяцев назад
Just made interactive grass using this last night with hardly any CPU usage at all. At first couldn't figure out what was wrong because I used "DrawMesh" and not "DrawMeshInstanced". Something else good to note is that you can set the transforms of the Matrix4x4 with ArrayForInstancing[numhere].SetTRS(position,rotation,scale).
@lekiwixiaosheng9668
@lekiwixiaosheng9668 7 часов назад
Hello, is there a difference between GPU instancing like you did and just simply checking the GPU instancing box in the material of gameobjects?
@lawrence9713
@lawrence9713 5 месяцев назад
I'm an art guy and I dont have any clue about programming. Could this be used to have 500 NPCs walking around in a small city?
@freedomcoding
@freedomcoding 5 месяцев назад
It surely could be, but it would be hard to add any logic etc. to the NPCs, as with this method of GPU instancing, you can just spawn meshes with no components I believe.
@ozgurgurbuz
@ozgurgurbuz 3 месяца назад
That's a good tutorial. I wonder if this works for my Editor tool. I spawn details on the Terrain with this tool, and I want to know if I can use this method outside of runtime.
@freedomcoding
@freedomcoding 3 месяца назад
Most functions can run in the editor as well. Try it and let me know what you find out!
@mohamadtshehab8027
@mohamadtshehab8027 3 месяца назад
What if I want a different color for each cube? Should I use an array of materials in that case, or can I use the same material for all the cubes?
@freedomcoding
@freedomcoding 3 месяца назад
I think you will need to call the function multiple times and pass in different material each time as it doesn't accept material array.
@錘哥雜談
@錘哥雜談 10 месяцев назад
good ! and where can i see more example ?
@freedomcoding
@freedomcoding 10 месяцев назад
Thanks! The way you make GPU instancing work is always the same, so I didnt cover more examples. Search online and you will definitely find more of them :)
@JanDevPL
@JanDevPL 9 месяцев назад
thanks
@freedomcoding
@freedomcoding 9 месяцев назад
You are welcome!
@samoldfield9997
@samoldfield9997 2 месяца назад
hi does this method works for mobile devices i do not think they have GPU?
@freedomcoding
@freedomcoding 2 месяца назад
Yes. Mobiles certainly have GPU. It is just not the dedicated GPU you have in PC but an integrated one.
@samoldfield9997
@samoldfield9997 2 месяца назад
@@freedomcoding thank you
Далее
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 403 тыс.
skibidi toilet multiverse 042 Trailer
01:57
Просмотров 2,8 млн
How To Render 2 Million Objects At 120 FPS
14:57
Просмотров 145 тыс.
20 Advanced Coding Tips For Big Unity Projects
22:23
Просмотров 187 тыс.
My Experience Moving to Godot from Unity
16:54
Просмотров 28 тыс.
How Do Games Render So Much Grass?
15:52
Просмотров 330 тыс.
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19