Whilst coding up the masks, I took some shortcuts which had a pretty big hit on performance, so I've spent a little time on speeding things up. It doesn't really matter how long the run-time of this part of the project is, but it can get boring watching a screen of updates go by slowly...
Before:
 |
| Ouch! That's over 1 second per frame! |
After:
 |
| Ah, much better! |
This was done by simplifying a search through the image for certain pixels. Hopefully after a few more tweaks, it'll be even faster.
No comments:
Post a Comment