본문 바로가기

Programming/Cocos2d-x (with. cpp & java )

cocos2d-x DisplayState가 작아서 안보일 경우

/*1초 단위로 출력*/
schedule([=](float dt)
{
    auto bat = (unsigned long) Director::getInstance()->getRenderer()->getDrawnBatches();
    auto vert = (unsigned long) Director::getInstance()->getRenderer()->getDrawnVertices();
    YIDLOG("%lu / %lu", bat, vert);
}, 1, "checkSTATE" );