Friday, February 15, 2013

Bitmap Objects

That is how they do it. Now i just need to figure out how they work.

Currently I create an object, it draws itself onto the screen. done. Every frame the computer has to redraw that object on the screen. If that object has an alpha (a transparency) then the object has to draw the background, itself, and then the various shades causing a lot more processing power to take place.

The concept behind bitmap Objects is that every frame you draw the whole screen, but only the result of what has taken place in code. For example, if a screen has 50 buttons on it, instead of calling a draw function 50 times (1 per button), it only draws the screen once. All objects become 1 image.

This allows the developer to make those really nice animations, or smooth motion, or a zillion objects on screen.

No comments:

Post a Comment