Giter VIP home page Giter VIP logo

Comments (8)

Boris-Em avatar Boris-Em commented on August 17, 2024

Hi @squarefrog,
Sorry for the late answer. This is indeed an issue and it's due to the way the graph is currently drawn (it uses multiple UIViews for each segment of the graph).
I'm currently working on a new way for it to be drawn, but it still requires more work as it changes a lot of things... The glitches won't be there anymore, and the performances should be better.
Thank you for pointing this out though!

from bemsimplelinegraph.

squarefrog avatar squarefrog commented on August 17, 2024

Can I ask why you're drawing each segment unsteady of just doing multiple UIBezierPath?

Not a criticism, just genuinely intrigued!

from bemsimplelinegraph.

Boris-Em avatar Boris-Em commented on August 17, 2024

Of course!
I thought that it would give me more control for certain things. For example it makes it easier to have methods like lineColorForIndex.
But performance wise it's pretty bad, and it creates bug like the one you spotted (at first the graph didn't have BΓ©zier curves, so the issue wasn't here).
Now it's not easy to move back to drawing the graph differently without breaking a bunch of stuff. But I'm making good progress!

from bemsimplelinegraph.

squarefrog avatar squarefrog commented on August 17, 2024

Thanks for explaining; I always appreciate hearing other developers thought processes. πŸ‘

from bemsimplelinegraph.

Boris-Em avatar Boris-Em commented on August 17, 2024

Hi @squarefrog,
I pushed a new commit to the feature branch yesterday that should fix the glitch issue. The graph is now drawn as one line instead of segments.
Please note that this branch is not as stable. A few features like lineColorForIndex are broken for now.
Thank you for opening this issue.

from bemsimplelinegraph.

FrederickGeek8 avatar FrederickGeek8 commented on August 17, 2024

Any idea when this will be pushed to the master branch? I have been experiencing extreme performance issue...

from bemsimplelinegraph.

squarefrog avatar squarefrog commented on August 17, 2024

You're very welcome!

from bemsimplelinegraph.

Boris-Em avatar Boris-Em commented on August 17, 2024

Hi @FrederickGeek8,
I need to test the feature branch a little bit more before merging it to the master one. There are a few things that I need to fix too. So I don't think it will happen in the next coming days.
Did you try using the build on the feature branch? If so, did you see any improvement performance wise?
Also, may I ask how to repro your performance issue?
Thanks for the feedback!

from bemsimplelinegraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.