Menu

#Trygetcomponent

1 post

Feed
1 of 1 post
How slow is Unity's SendMessage? Benchmarking it against interfaces, UnityEvent and C# events with 10,000 enemies
📰
0Read More

How slow is Unity's SendMessage? Benchmarking it against interfaces, UnityEvent and C# events with 10,000 enemies

DEV Community: csharp·Masaki Mori·about 20 hours ago
#uatnWlXT
#devtocsharp#devto#dev#sendmessage#takedamage

SendMessage took 4.91 ms and allocated 26.1 MB per second when called on 10,000 enemies every frame. Interfaces, direct calls, UnityEvent and C# events allocated nothing.…

15s