精灵旋转问题

精灵不停的旋转时(如时钟的转动)速度稍快时会出现断层现象?

 auto size = Director::getInstance()->getWinSize(); 


 auto sprPointer = Sprite::create("pointer.png");
 sprPointer->setPosition(size.width/2, size.height/2);
 addChild(sprPointer);
 auto action1 = RotateBy::create(2 ,  360);
 sprPointer->runAction( RepeatForever::create(action1));



```



在win32全屏模式下:
AppDelegate.cpp
    if(!glview) {
 glview = GLView::createWithFullScreen("My Game");
        //glview = GLView::create("My Game");
        director->setOpenGLView(glview);
    } 
   glview->setDesignResolutionSize(1280, 720, ResolutionPolicy::EXACT_FIT);



```

断层现象?是指?

速度稍快?是多快?

    • 最后带上代码和效果图~

重新编辑了下,效果图就截不到了。只能给出测试用例。主要是在WIN32全屏模式下会有!

原来是显卡问题,独显上不会

楼主一个月才解决这个问题?这种问题有点蛋疼啊。。。

现在才知道原来是 垂直同步!

最近在使用HGE引擎也出现同样的问题,查了下 据说是垂直同步问题,但不知道cocos2d上怎么开启垂直同步!