some hot loop optimizations

seeing much smoother animations by skipping drawing for 0 opacity blips and caching array lookups.