Comments (14)
@stefankarschti found a slight bug. With the above code, there is a pretty massive memory leak if you just simulate the highway drive:
from maplibre-native.
Understood, I'm compiling with the metal flag here.
from maplibre-native.
Sorry, copied old file, updated.
from maplibre-native.
@bsudekum OK maybe @stefankarschti can think of a Swift-compatible interface.
from maplibre-native.
@stefankarschti it works! thanks for working through this.
from maplibre-native.
@stefankarschti cool that worked!
from maplibre-native.
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.
Isn't it named MLNCustomStyleLayer
on that branch?
from maplibre-native.
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.
@louwers yep that did the trick.
from maplibre-native.
I added renderEncoder as a property. Please retry
from maplibre-native.
Yep, that's on me 😄
Thanks for testing, please retry now.
from maplibre-native.
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.
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)
- Memory usage high in some cases
- Android 10.3.1 Release with Debug Symbols HOT 1
- IndexedSymbolInstance Crash HOT 1
- Crash in iOS simulator on Sonoma + XCode 15 HOT 1
- PMTiles area download mechanism HOT 4
- CURL_POLL_REMOVE socket action is unhandled and causes runtime error HOT 2
- Support `text-variable-anchor-offset` property
- Use Drawable Renderer for Android Render Test on CI
- Accept CSS style padding different on different sides for `icon-padding` property
- Crash on startup with Android Emulator API ≤ 30 HOT 12
- Abysmal performance with x86_64 Android emulator HOT 6
- Crash on rotating with Android Emulator HOT 3
- Icons in geojson source randomly vanish depending on zoom level / tile HOT 7
- Render Test Parity Tool
- Look into GitHub Artifact Attestations
- Failed assertion on iOS / Metal 6.4.0 HOT 1
- Line annotations don't appear immediately on iOS HOT 9
- When will the ScaleBarPlugin compatible with android-v11.0.0 Maplibre version be updated? HOT 2
- Fix deployment Android documentation HOT 1
- Missing data for single tiles when using `GeoJsonSource` HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maplibre-native.