Open 275288698 opened 5 years ago
in this demo ,when i click the "START" button , then the native memory increase continue (from android studio profiler view),about 3 min, the memory increase to 500M,and the app crash. and i try to fix the the code in siriwave9.js. // if (window.requestAnimationFrame) { // window.requestAnimationFrame(this._startDrawCycle.bind(this)); // } else { // setTimeout(this._startDrawCycle.bind(this), 20); // } setTimeout(this._startDrawCycle.bind(this), 30);
and it won't OOM again , i am not good at js, wait for ur help to give a prefect solution
feel free to create a PR my friend @275288698
in this demo ,when i click the "START" button , then the native memory increase continue (from android studio profiler view),about 3 min, the memory increase to 500M,and the app crash. and i try to fix the the code in siriwave9.js. // if (window.requestAnimationFrame) { // window.requestAnimationFrame(this._startDrawCycle.bind(this)); // } else { // setTimeout(this._startDrawCycle.bind(this), 20); // } setTimeout(this._startDrawCycle.bind(this), 30);
and it won't OOM again , i am not good at js, wait for ur help to give a prefect solution