Git Product home page Git Product logo

Comments (8)

moagrius avatar moagrius commented on August 22, 2024

No, only tiles are managed relative to the viewport, everything else is rendered normally. Are you concerned about memory?

from mapview.

mohlendo avatar mohlendo commented on August 22, 2024

Yes, when I use the ParthViews the MapView does not respond anymore because I have A LOT of PathViews. I have now added a way to draw directly on the bitmap of the tiles which is much faster. This will eventually result in another pull request ;-)

from mapview.

moagrius avatar moagrius commented on August 22, 2024

sounds cool - looking forward to seeing it

from mapview.

moagrius avatar moagrius commented on August 22, 2024

How'd this go @mohlendo? In another dev's project, they found that adding/removing paths dynamically was buggy, but I found redrawing was stable, so for the next major update I'm going to rewrite the whole path drawing strategy #57 If you've found anything useful, LMK. Thanks.

from mapview.

phil-applegate avatar phil-applegate commented on August 22, 2024

Just to add a comment to this, I've recently been trying to draw a particularly large path. When trying to use hardware acceleration to draw the MapView I am presented with the error OpenGLRenderer: "Shape path too large to be rendered into a texture" and the path is not drawn.

This can be resolved by disabling hardware acceleration at a cost of performance. Not sure if your update to the path drawing strategy in #57 is planned to solve this but could be worth looking at.

Cheers and thanks.

from mapview.

moagrius avatar moagrius commented on August 22, 2024

@phil-applegate ideally i'd like to limit the shape to the viewport, but i'm not sure how realistic that'll end up being. will definitely keep the note above handy tho, thanks for the input.

from mapview.

phil-applegate avatar phil-applegate commented on August 22, 2024

I've been doing some more research into this issue and found this post which looks to be similar to the problem I described above.

I've modified my local version of MapView to use drawLines() combined with drawCircle() rather than drawPath(). As a result the Path does not look quite as good as it did with drawPath() but it can now be hardware accelerated thus improving performance and smoothness.

Hope the link proves to be some use!

from mapview.

moagrius avatar moagrius commented on August 22, 2024

@phil-applegate very good info - i knew the path drawing operations needed to be rewritten for the upcoming TileView replacement, and will definitely keep this info handy when doing that. thanks.

from mapview.

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.