Culling Performance

Hi! Just a quick question. Is culling only checking which pixels are outside of screen? If by design of an app, there is nothing outside screen bounds, will turning it off increase cpu performance?

Let us ask @zhangxm for his thoughts on this.

@kerryk what the culling you mean? Did you mean the codes in Sprite::draw()? If so, then yep, it will save CPU performance.

/** Use culling or not. */

#ifndef CC_USE_CULLING

#define CC_USE_CULLING 1

#endif

As i understand, it checks whatever is outside screen bounds and doesn’t draw to save performance. But in case by design, everything is inside screen it waists performance for unnecessary checks and can be turned off.

Yep, you are right.