MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / update

Function update

script.js:1176–1186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1174update();
1175
1176function update () {
1177 const dt = calcDeltaTime();
1178 if (resizeCanvas())
1179 initFramebuffers();
1180 updateColors(dt);
1181 applyInputs();
1182 if (!config.PAUSED)
1183 step(dt);
1184 render(null);
1185 requestAnimationFrame(update);
1186}
1187
1188function calcDeltaTime () {
1189 let now = Date.now();

Callers 1

script.jsFile · 0.85

Calls 7

calcDeltaTimeFunction · 0.85
resizeCanvasFunction · 0.85
initFramebuffersFunction · 0.85
updateColorsFunction · 0.85
applyInputsFunction · 0.85
stepFunction · 0.85
renderFunction · 0.85

Tested by

no test coverage detected