Comments (11)
Assuming that on iOS, this means a move to a dirty
flag which necessitates a call to render()
?
from mapbox-gl-native.
We should be able to solve this on OS X by posting an NSNotification
upon tile load success which calls render()
.
I will work on iOS first -- this should move to a CADisplayLink
for UITouch
tracking + the above notification approach for tile loads.
from mapbox-gl-native.
@incanus I've had got success setting paused = true
on the GLKViewController
on iOS.
from mapbox-gl-native.
I was experimenting with pausing the CADisplayLink
directly, but pausing the VC is my next bet.
from mapbox-gl-native.
[self performSelector:@selector(stopRender) withObject:nil afterDelay:3.0];
why do do this?
from mapbox-gl-native.
Yeah I've been thinking about this, that it's somewhat unconventional, and how to best start/stop rendering. This buys a few seconds of render passes after significant actions (gestures, tile loads, etc.) which had caused an update. We may be able to just stopRender
directly, or possibly with afterDelay:0
, which means the next pass of the run loop.
I will reopen this to flag that I should take another look -- was just on my mental todo before.
from mapbox-gl-native.
Nah, this is a good way to do this. Actions which require render updates (gestures, tile loads, etc.) un-pause the display link passes, as well as cancel previous requests to re-pause the passes. Once things die down, a (three second) future re-pause call kicks in and stops renders until the next significant action.
from mapbox-gl-native.
I'm concerned that 3 seconds is an arbitrary value. Instead, we should algorithmically determine if we need a rerender (like on WebGL).
from mapbox-gl-native.
Ok. Lower priority, but I'll take another pass at this. We might be fighting GLKView
's own benefits.
from mapbox-gl-native.
This is superseded by #161.
from mapbox-gl-native.
This is also done by moving to libuv, so not related to GLKit (which is iOS specific anyway).
from mapbox-gl-native.
Related Issues (20)
- Map tiles not downloading to device HOT 5
- Android: can't call java.lang.String com.mapbox.geojson.GeoJson.type() on null object when adding trailing line behind location history
- Location component puck drifts on its own with no user movement after the map has been initialised for a few minutes
- Linux build fails on exception_ptr HOT 2
- Using GPU server to speed up the rendering of mapbox-gl-native on the server side
- attach MouseArea to MapParameter
- App crashes when trying to draw polyline by adding coordinates using onLocationChanged but works using hardcoded coordinates
- Unable to generate docs using javadoc HOT 1
- Shove / Tilt gesture unreliable on Android HOT 2
- MapBox, UserTrackingMode.follow when GPS is enabled (problem) HOT 1
- Archive repository
- What is the status of this engine ? is it still updated ?
- Unable to submit iOS app with mapbox static framework
- Syntax error while adding a filter to pre-exisiting filter in a fill layer using NSCompoundPredicate
- Fix build under MacOS Ventura SDK 13.3
- Stuck trying to install crossover app. HOT 1
- `cmake -DMBGL_WITH_QT=ON` fails with `_populate_Gui_plugin_properties Macro invoked with incorrect arguments for macro named: _populate_Gui_plugin_properties`.
- Build with GCC 13.1.1 fails with `geometry.hpp:9:24: error: found ‘:’ in nested-name-specifier, expected ‘::’` and subsequent errors `error: ‘FeatureType’ has not been declared`.
- queryRenderedFeatures does not respect the vertical order of layers HOT 1
- Display properties in glfw-linux-application
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 mapbox-gl-native.