I have a strange floating (Heisenbug) behavoiur when scheduling update(float deltaTime)
selector in my class MainSceneLayer: public CCLayer
.
update(float deltaTime)
function increases m_totalTimePassed
variable (class member; m_totalTimePassed += deltaTime;
) and updates CCLabelTTF
content to show how much time has passed.
On Windows, this works fine. But sometimes on iPad2 or iPad3 m_totalTimePassed
is updating about 2 times faster than real time is.
Requesting any help and ideas. Maybe, i've set up my scene wrong, or smth else ?
There was a mistake in my own code which caused memory corruption (rotten pointer usage).