Obiekt Animate Three.js Niezależnie od ekranu FPS
// Time
let time = Date.now();
// Animation
const tick = () => {
//Time
const currentTime = Date.now();
const deltaTime = (currentTime - time);
time = currentTime;
console.log(deltaTime);
//Update the object
mesh.rotation.y += 0.001 * deltaTime
//Rednder
renderer.render(scene, camera)
window.requestAnimationFrame(tick)
}
tick();
ofroog