redbluegames / unity-text-typer

Text typing effect for Unity uGUI Text components
MIT License
307 stars 28 forks source link

Do a Garbage Pass (on Non-Animation) #33

Open edwardrowe opened 4 years ago

edwardrowe commented 4 years ago

There could be areas we are generating needless garbage. Especially consider:

edwardrowe commented 4 years ago

This actually won't be too bad. Found the following areas to tackle:

Tag Parsing:

Text Typing:

Animation:

edwardrowe commented 4 years ago

Captured allocations when printing the color tags. Appears to be 334 KB (did it twice, same result both times).

Screen Shot 2020-06-28 at 12 41 19 AM