class DumbContainer
Description
There are plenty of cases where a large amount of Component
s are going
to be placed inside of a Container
, BUT NEVER CHANGE. This scenario
can be brought up by creating a tile based map using Sprite
. Map's don't
change beyond their initialization (usually), so it's a waste of CPU to
re-render and check for updates of each individual tile, because we know that
they will never need to change. That very scenario is why DumbContainer
exists. Using a DumbContainer
, all the tile sprites that were added to the
container will only be rendered once, and then re-blitted to the screen for
maximum speed.
So in short, use DumbContainer
when the components inside will never
need to be changed, and save a lot of processing power.