Project in question: https://didisoftwares.ddns.net/music/test/index.html
I’m trying to run the project below on an Android SM-A022.
However, there seems to be no way to synchronize the rendering with the beat calculation on phone.
In the browser, everything works fine.
Any way to prioritize calculations before rendering?
this is my update function:
function update() {
requestAnimationFrame(update);
var delta = clock.getDelta();
var elapsed = clock.getElapsedTime();
if (delta && delta != null && control && typeof (control) != _UN) { //all controls are created
control.update();
audioTest(delta,elapsed); //audio beat check
postprocess.update(delta, elapsed); //shader materials update
postprocess.render(); //render paint
}
}