Why? Is this a bug? Or something more deeper? Please @zhangxm@zhangbin can you comment this? Also summoning @slackmoehrle for ping other developers of cocos2d-x
My question is not about that. What I’m asking is just a difference in behaviour of standard update method, which I believe should be the same, stable, whatever what engine is used. But currently for cocos2d-x is very unstable.
@zhangxm So, is this a bug?
My game actually looks not so solid and nice for eyes(I have fast moving character) as it was on cocos2d-iphone. So quality is different, I really can see this on the device. So I’m very interested in stable update, because it’s obviously should be stable. Should I create an issue on github?
Sorry, i don’t have time to look into it. Indeed, stable update can not be expected as scene becomes more complex. As this issue, i think it may be treated as an issue, should optimize it.
My game is a bit heavy, on cocos2d-iphone it’s loads processor up to 40%, but update stable anyway, so 0.016 all the time. But I just tested this on simple HelloWorld project and got unstable delta.
So, this is 100% some trouble with cocos2d-x code. I will open issue about this.
> This is a particular issue with cocos2d because it does not use the CADisplayLink duration property. Instead it relies on system timers to calculate the time difference. As a result, cocos2d’s delta time is merely an approximation and ever-so-slightly disconnected from the actual refresh rate.
So, as I see, this was fixed since that time for cocos2d-iphone v3, but currently a problem for cocos2d-x.
@zhangxm Yes, me too. Actually this is a huge problem, not using VSYNC for iOS gives me shutter frames sometimes, and I can’t fix this anyway. All code in that issue and it works well for cocos2d-iphone v3.
@zhangxm so any ideas when this will be fixed? Also, why this was made that way, so with loosing quality for iOS? It’s just easy to create solution for each platform.
@anon98020523 yep, i think cocos2d-x should modify like that. But it is not convenient using Objective-c codes in CCDirector.cpp, i will think more about it.
@zhangxm well, CCDirector.cpp can’t be with Objc, it’s shod be cross-platform class like CCDirector-iOS.mm and “overload” method calculate delta…