Commit 385ed90
authored
fix(components): disable preserveDrawingBuffer by default for better performance (#3326)
preserveDrawingBuffer was hardcoded to true for the base map, causing a
known WebGL performance penalty on every frame. This option is only needed
for image export (canvas.toDataURL()), so we now only enable it when
isExport is true. The plot-container already sets isExport: true when
rendering for export, ensuring image export continues to work correctly.
Users who need preserveDrawingBuffer for other purposes can still override
it via bottomMapContainerProps.
Addresses #3237
Signed-off-by: pierreeurope <pierre.europe@pm.me>1 parent f182d6c commit 385ed90
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
| 1115 | + | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| |||
0 commit comments