define('DISALLOW_FILE_EDIT', true);
Thanks! It depends on what you are doing whether CaB and CaBM make things slower. CaBM does seem to make things slower most of the time (in this test ALL the time). I’ve got an idea that it might help with constant rotation (this test only rotates when the bunnies hit the edge).
CaB helps when translating ONLY x/y position on CPU mode. You can see the benefit in CPU mode when you turn on rotation and CaB. Without CaB the CPU seems to rotate each Bitmap every frame, where if you use CaB, it just uses the cached rotated image, until it’s invalidated by further rotation. You do take a huge performance hit when rotation is on (you can even see that on the desktop), though the hit is much smaller with CaB.
In GPU mode – yeah, CaB always makes things slower for Bitmap instances. Even CaBM doesn’t seem to actually have any benefit. I’ll add a constant rotation mode soon, that’ll probably show further performance degradation with rotated Bitmaps (in CPU mode), and should test whether CaBM has any benefit at all (so far it hasn’t, not for Bitmap instances in either mode).
]]>