Replies: 3 comments 3 replies
-
Can you link to an example that shows the current usage/problem? |
Beta Was this translation helpful? Give feedback.
-
This snippet in the Texture class is what ultimately kicks off mipmap generation: maplibre-gl-js/src/render/texture.ts Line 75 in 224a8c8 The Texture class already has a constructor parameter for enabling/disabling the mipmap, but for raster sources, their Textures are always created with What I'd like is some way to configure |
Beta Was this translation helpful? Give feedback.
-
I created a PR that uses the config system (rather than styling) to control whether or not mipmaps are generated for raster textures: #1853 |
Beta Was this translation helpful? Give feedback.
-
Mipmaps can improve quality by reducing texture aliasing, but at some cost, like 33% additional GPU memory per texture plus computation overhead on the client that is required to generate the mip levels.
Currently mipmaps are enabled by default, but could an option be added to the styling to disable it?
If so, one point to clarify would be whether this is a property of the
paint_raster
orsource_rastser
... I could see an argument for both, but because mipmapping requires an explicit call to GL for generating miplevels on the texture, this seems possibly more appropriate as a property on the source.Beta Was this translation helpful? Give feedback.
All reactions