Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawRect Performance issue, While scrolling #2217

Open
aelam opened this issue Mar 3, 2017 · 4 comments
Open

drawRect Performance issue, While scrolling #2217

aelam opened this issue Mar 3, 2017 · 4 comments

Comments

@aelam
Copy link
Contributor

aelam commented Mar 3, 2017

When scrolling
The performance goes down after loaded more than 400 visible entries of data for each dataSet of around 6 dataSets.
The performance is good when less than 100 visible entries for each dataSet

I'm wondering if ShapeLayer and Bezier could help
then hand out the drawRect staff to GPU

screen shot 2017-03-03 at 4 55 53 pm

@liuxuan30
Copy link
Member

how about your FPS? Just talking about ms does not make much sense.
I used to test ~1000 data entries, the animation will start lagging, you have 400 * 6 = 2400 entries, which seems starting dropping

@aelam
Copy link
Contributor Author

aelam commented Mar 7, 2017

20-30 fps.

I've tries several stock apps, which are extremely smooth.
I'm not very sure if they are rendering by GPU. It is possible that they don't allow to zoom out to show too many entries on screen
And I also compared mine to 牛股王 at the same scale. still not good as it.

I was trying to let NSUIView inherit from GLKView,
the conflict for GLKViewDelegate and ChartViewDelegate is the first breakdown
both of ChartBaseView and GLKView have a property delegate.
Can't make them together in ChartBaseView

牛股王: https://itunes.apple.com/us/app/niu-gu-wang-gu-piao-chao-gu/id855046551?mt=8
自选股: https://itunes.apple.com/cn/app/自选股-腾讯官方出品/id485653572?mt=8

@liuxuan30
Copy link
Member

Yeah, GPU is one thing. Have you tried not to use animation, zooming feature to see if it's smoother?

@aelam
Copy link
Contributor Author

aelam commented Mar 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants