fix fpsLimit unused

This commit is contained in:
do butterflies cry? 2026-02-01 15:42:50 +10:00
parent ffad884915
commit 935cc44f66

View file

@ -67,11 +67,8 @@ function renderShader(gl, vsSource, fsSource) {
// objects we'll be drawing. // objects we'll be drawing.
const buffers = initBuffers(gl); const buffers = initBuffers(gl);
// Draw the scene
// drawScene(gl, programInfo, buffers, 0);
const fpsLimit = 30; const fpsLimit = 30;
const fpsDelta = 1000 / 30; const fpsDelta = 1000 / fpsLimit;
// let timePrev = 0; // let timePrev = 0;
// requestAnimationFrame asks the browser to call render, // requestAnimationFrame asks the browser to call render,
// providing the time in milliseconds since the page loaded // providing the time in milliseconds since the page loaded
@ -128,7 +125,7 @@ function main() {
`; `;
// Fetch fragment shader program // Fetch fragment shader program
fetchShader("segfault.glsl") fetchShader("fbm.glsl")
.then(fsSource => { .then(fsSource => {
renderShader(gl, vsSource, fsSource); renderShader(gl, vsSource, fsSource);
}); });