Quenty / NevermoreEngine

ModuleScript loader with reusable and easy unified server-client modules for faster game development on Roblox
https://quenty.github.io/NevermoreEngine/
MIT License
407 stars 125 forks source link

Avoid BindableEvent in Brio #380

Closed OttoHatt closed 7 months ago

OttoHatt commented 1 year ago

A brio will create a BindableEvent if its :GetDiedSignal() method is used. This is slower than instantiating an optimised Lua reimplementation. It's also worth noting that brios typically only have 1 listener to their died signal (an observable subscription via :ToMaid()), so an implementation optimised for only one listener (i.e. GoodSignal using a linked list) is preferable.