fix fpsLimit unused
This commit is contained in:
parent
ffad884915
commit
935cc44f66
1 changed files with 2 additions and 5 deletions
|
|
@ -67,11 +67,8 @@ function renderShader(gl, vsSource, fsSource) {
|
|||
// objects we'll be drawing.
|
||||
const buffers = initBuffers(gl);
|
||||
|
||||
// Draw the scene
|
||||
// drawScene(gl, programInfo, buffers, 0);
|
||||
|
||||
const fpsLimit = 30;
|
||||
const fpsDelta = 1000 / 30;
|
||||
const fpsDelta = 1000 / fpsLimit;
|
||||
// let timePrev = 0;
|
||||
// requestAnimationFrame asks the browser to call render,
|
||||
// providing the time in milliseconds since the page loaded
|
||||
|
|
@ -128,7 +125,7 @@ function main() {
|
|||
`;
|
||||
|
||||
// Fetch fragment shader program
|
||||
fetchShader("segfault.glsl")
|
||||
fetchShader("fbm.glsl")
|
||||
.then(fsSource => {
|
||||
renderShader(gl, vsSource, fsSource);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue