It seems in IOS 10 when touching screen and scrolling u get somehow feel that game running on 20fps not 60, scroll and all animations durring touch events get low fps feel. It is ok to be IOS 10 issue, but seems Unity have fixed that issue somehow - we see in many games scrolls works smooth on Unity - but not in cocos. Could you please ask someone to check this - it’s is 100% reproducible issue with any scroll.
I’m testing a game with a scroll view made with Cocos2d-x 3.14 in a device running iOS 10.2.1 right now and I’m not experiencing any issue. 60 fps as always.
Edit: I’m talking about cocos2d-x’s built in cocos2d::ui::ScrollView class, not Apple’s UIKit one.
After scrolling for few seconds down& up at some point scroll started to work like there is 20fps - text jumping - you can see until 1.40 m that text when scroling jumping like 6px to next position, after I opened bottom bar( IOS control panel) on iphone - scroll got back to 60fps. In slow motion it looks like text jumping for 1px not 6px. This fps drop happens only when you touching with finger screen and making up or down slides, when u releasing finger scroll looks fine until u again touch screen.
UPDATED:
I seems found best way how to reproduce it, open Cocos2d-x cpp test app(in portrait mode) with that menus in scroll, click any of menus option to change scene and then after 1-3 second click back button to return to menu scroll -> when trying slowly scroll down or up(hold finger on screen all the time) you will see scroll lagging like there is 20fps - if you open and close IOS control panel -> scroll back to normal or randomly itslef goes to normal state- until again clicking menu option-> back and again scroll starting to lag.
It even looks that not scroll lagging itself but touch events are sent with delay and like interrupted all the time -> so text seems jumping thru skipped pixels when making scroll and it makes 20fps feel as it is not smooth.
can someone confirm that can reproduce this issue as it clearly visible on any ios 10 64bit device, it seems like issue with cutting fonts which existed from 3.0 till 3.8 and cocos2d-x devs not noticed this - due not releasing really production ready apps and who cares if few pixels of font not visible:)
I have now measured the timings and it seems like the TouchMove events in the CCEAGLView-iOS come in sometimes with a delay of up to 70 ms which causes the annoying stutter which is pretty much the same as @energyy seems to have found out.
I created a simple demo with GLKView and found that the issue also exists in the demo.
I have tried many workaround including invoking [self setNeedsDisplay] in touchesMoved method.
It seems a bug in iOS 10 system and hard to fix…
Hi to all,
I have no issue with BMF fonts in scroll views, no issues with images and BMF fonts + scroll. All is smooth.
Tested on iPhone 6, 10.2.1
Maybe this issues is only for scrollview+system fonts?
No u should have it anyway , it just happens after some time. We have app where scroll not involved just aiming like in agry birds and this also causes ame input lags