Skip to content

Commit 542cb81

Browse files
authored
docs: DOC-684: add webgl chrome limitations (#1181)
Added general limitations page, with webgl on chrome to start.
1 parent da5d339 commit 542cb81

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Limitations
2+
3+
## Chrome WebGL Limit
4+
Chrome has a limit of 8 WebGL contexts active at one time.
5+
If more than 8 charts that use WebGL are created, the earliest charts appear as empty.
6+
Options to work around this include:
7+
1. Using Firefox, which has a higher limit.
8+
2. Setting `render_mode = "svg"` when creating the chart where possible, such as in scatter charts.
9+
Some charts, such as 3D charts and maps, do not provide this option as they require WebGL.
10+
3. Disabling WebGL in the Deephaven settings. Charts that require WebGl will still render in WebGL when available.
11+
4. Setting Chrome to allow more WebGL contexts with the `--max-active-webgl-contexts` flag.
12+
For example, to set the limit to 64:
13+
```bash
14+
--max-active-webgl-contexts=64
15+
```
16+
See more on flags [here](https://www.chromium.org/developers/how-tos/run-chromium-with-flags/).
17+
18+
> [!WARNING]
19+
> Disabling WebGL, either in the settings or per chart, can lead to performance issues when plotting large datasets.
20+

plugins/plotly-express/docs/sidebar.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@
144144
"path": "static-image-export.md"
145145
}
146146
]
147+
},
148+
{
149+
"label": "Limitations",
150+
"path": "limitations.md"
147151
}
148152
]
149153
}

0 commit comments

Comments
 (0)