Skip to content

Commit

Permalink
benchmark fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danchitnis committed Jan 2, 2021
1 parent d509180 commit 312ff6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ Notice that this method is only recommended for test and small codes.
[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:
[JSfiddle](https://jsfiddle.net/danchitnis/tu1svwbp/)

## Benchmark

[Line generation and Frame rate](https://danchitnis.github.io/webgl-plot/benchmark/bench1.html)

## API Documentation

See [here 📑](https://webgl-plot.now.sh/)
Expand Down
2 changes: 1 addition & 1 deletion benchmark/bench1.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function update() {
}
//console.log(yFinal);

wglp.lines.forEach((line) => {
wglp.linesData.forEach((line) => {
for (let i = 0; i < yFinal.length; i++) {
line.setY(i, yFinal[i]);
}
Expand Down

0 comments on commit 312ff6f

Please sign in to comment.