We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I observed that too frequent regl draws freezed/crashed web browsers (tested in Google Chrome 100.0.4896.75(macOS)).
regl
How to prevent too frequent draws for the sake of safety? The following method is admissible or recommended?
for (frequent_loop) { setData(newData); drawRequested = true } let drawRequested = false; regl.frame(()=>{ if (drawRequested) {doReglDraw()); drawRequested=false;} });
rather than
for (frequent_loop) { setData(newData); doReglDraw() }
.
Note that the above method is tested in regl + d3.js: Zoomable scatter plot with reading data files dropped-onto (bl.ocks), where frequent_loop is caused by file.stream().getReader();.
frequent_loop
file.stream().getReader();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I observed that too frequent
regl
draws freezed/crashed web browsers (tested in Google Chrome 100.0.4896.75(macOS)).How to prevent too frequent draws for the sake of safety? The following method is admissible or recommended?
rather than
.
Note that the above method is tested in regl + d3.js: Zoomable scatter plot with reading data files dropped-onto (bl.ocks), where
frequent_loop
is caused byfile.stream().getReader();
.The text was updated successfully, but these errors were encountered: