tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

Default to WebGL "high performance" mode #721

Closed bcamper closed 5 years ago

bcamper commented 5 years ago

Defaults to using high-performance for WebGL's powerPreference setting. This will ask for use of the discrete GPU where possible. The user can override as with other GL context options:

const layer = Tangram.leafletLayer({ scene, { webGLContextOptions: { powerPreference: 'low-power' } } });
bcamper commented 5 years ago

Discussed in chat and further with @meetar.