Code Monkey home page Code Monkey logo

Comments (14)

bsudekum avatar bsudekum commented on June 26, 2024 2

@stefankarschti found a slight bug. With the above code, there is a pretty massive memory leak if you just simulate the highway drive:

image

from maplibre-native.

bsudekum avatar bsudekum commented on June 26, 2024 1

Understood, I'm compiling with the metal flag here.

from maplibre-native.

bsudekum avatar bsudekum commented on June 26, 2024 1

Sorry, copied old file, updated.

from maplibre-native.

louwers avatar louwers commented on June 26, 2024 1

@bsudekum OK maybe @stefankarschti can think of a Swift-compatible interface.

from maplibre-native.

bsudekum avatar bsudekum commented on June 26, 2024 1

@stefankarschti it works! thanks for working through this.

from maplibre-native.

bsudekum avatar bsudekum commented on June 26, 2024 1

@stefankarschti cool that worked!

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Note that OpenGL ES is no longer supported on iOS since the 6.0.0 release.

For development of the Metal renderer, OpenGL was kept around, but we'll be moving towards removing it completely from the iOS sources.

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Isn't it named MLNCustomStyleLayer on that branch?

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Yeah this might be a limitation of Swift's Objective-C interoperability.

Thanks for trying it out. Could you remove the renderEncoder field from the struct and see if it compiles?

from maplibre-native.

bsudekum avatar bsudekum commented on June 26, 2024

@louwers yep that did the trick.

from maplibre-native.

stefankarschti avatar stefankarschti commented on June 26, 2024

I added renderEncoder as a property. Please retry
image

from maplibre-native.

stefankarschti avatar stefankarschti commented on June 26, 2024

Yep, that's on me 😄
Thanks for testing, please retry now.

from maplibre-native.

thothai94 avatar thothai94 commented on June 26, 2024

Understood, I'm compiling with the metal flag here.

Could you please tell me how to set compiling with metal flag in iOS project?
In my case, #if MLN_RENDER_BACKEND_METAL check statement always return false

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Please create a new Discussion or Issue for unrelated problems.

@thothai94 But you can generate the Xcode project with:

bazel run //platform/ios:xcodeproj --@rules_xcodeproj//xcodeproj:extra_common_flags="--//:renderer=metal"

https://github.com/maplibre/maplibre-native/blob/main/platform/ios/README.md#developing

from maplibre-native.

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.