Old WebGL contexts not destroyed after updating with React plot component
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
This issue is related to #2852. I'm working on a dashboard using the React Plotly components with WebGL. I have become stuck because of the maximum number of WebGL contexts. The fix I had planned was to limit the number of charts so that the maximum wasn't crossed. But I'm also seeing that when a single plot component has its data changed, the previous WebGL contexts stay alive and will eventually have the same effect as having too many plots.
Is there a way to throw away the old WebGL context after updating a plot?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, wiederholte Datenaktualisierungen in der React-Plotly-Komponente mit WebGL zu reproduzieren, und untersuche, wie Plot-Aktualisierungen WebGL-Kontexte verwalten. Verwende das in #2852 beschriebene Verhalten als verwandten Kontext. Als abgeschlossen gilt die Aufgabe, wenn die Aktualisierung eines Plots keine zuvor erstellten WebGL-Kontexte mehr aktiv lässt und nicht dazu führt, dass das Kontextlimit des Browsers erreicht wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- computer-graphics, data-visualization, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100