Skip to content

Commit 312ff6f

Browse files
committed
benchmark fix
1 parent d509180 commit 312ff6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ Notice that this method is only recommended for test and small codes.
148148
[Skypack](https://www.skypack.dev/view/webgl-plot) is the new exciting CDN for ESM Javascript. See the example below on how to use it:
149149
[JSfiddle](https://jsfiddle.net/danchitnis/tu1svwbp/)
150150

151+
## Benchmark
152+
153+
[Line generation and Frame rate](https://danchitnis.github.io/webgl-plot/benchmark/bench1.html)
154+
151155
## API Documentation
152156

153157
See [here 📑](https://webgl-plot.now.sh/)

benchmark/bench1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function update() {
5757
}
5858
//console.log(yFinal);
5959

60-
wglp.lines.forEach((line) => {
60+
wglp.linesData.forEach((line) => {
6161
for (let i = 0; i < yFinal.length; i++) {
6262
line.setY(i, yFinal[i]);
6363
}

0 commit comments

Comments
 (0)