So far we’ve seen how to use Stage3D
to get massively increase performance with hardware acceleration, but that performance has come at a cost: we must use the same texture for each object we’re drawing. Today we’ll smash that requirement without losing an ounce of performance!
Posts Tagged hardware
Today’s article shows you how to get great performance with a ton of sprites by reducing your Stage3D
draw calls. As we saw last time, Stage3D
performance is not guaranteed to be good and falls significantly below normal 2D Stage
performance even on expensive tasks like scaling and rotating Bitmap
objects as well as redraw regions covering the whole stage. Today we’ll show how to overcome those performance problems and beat the tar out of the 2D Stage
.
Along with Flash Player 11’s new Stage3D
class have come hardware-accelerated 2D rendering engines. Impressive results have already been demonstrated by advanced engines like Starling and ND2D. Today’s article shows a simple Stage3D
-based sprite class to help learn more about how these engines are implemented and provides a simplified alternative to the more complex 2D engines that still delivers hardware-accelerated performance.