fix fpsLimit unused

This commit is contained in:
Emile Clark-Boman 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.
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);
});