cakeslice / Outline-Effect

Outline Image Effect for Unity
MIT License
1.48k stars 201 forks source link

Feature/performance enhancements #19

Closed ptwohig closed 7 years ago

ptwohig commented 7 years ago

In our game we spawn many objects that have the outline. Most of them are things like guns/grenades etc. When you kill an enemy in the game, they drop various pieces of gear. We discovered that under certain circumstances killing an enemy would result in a dip in frame rate, and the dip would last longer as the level progressed.

It seems that the OutlineEffect tracks a list of all Outline instances and that every request to enable or disable the outline will result in two things happening:

My concern with this approach is as follows:

ptwohig commented 7 years ago

It looks like there was some tab vs. space problems. If you have a preference, please let me know and I'll normalize the text.

cakeslice commented 7 years ago

Thank you so much, will merge!

I prefer tabs but I don't really care :)