Just a few videos ago you taught us not to foreach a foreach every time something needs calculating… Shouldn’t we be concerned about building another system that way?
It’s fairly intensive, and I wondered the same thing myself when I took the course, but I haven’t seen a more performant way to accomplish this. The only thing we could do to optimize this is to link into the OnEquipmentChanged Event and poll the data there and cache it. Just about no matter what, though, you’ll have to do this at least once per equipment change.
3 Likes
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.