Few 2D Graphics Optimization Tips

Here are few optimization techniques that were handy to me recently; they mostly concern 2D graphics programming, where these patterns often emerge, but are helpful anywhere where you have to iterate and update data.

In short:

  • iterate
  • don’t do if‘s
  • map all you can
  • don’t float
  • cache your reads

Continue reading