[expo-gl]really poor performance. How to improve?

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): Android

Replace this section with as much relevant information as possible and any relevant code along with your question.

I have build a GLView demo based on expo-examples which inits 100 rotating cubes with three.js.

When running on expo client of Android, js fps drops down to about 26. And Obviously feel stuck!
HOWEVER, when I run the same demo of Web Version on the same android phone, it’s so smooth.
So frustrating! RN GL is even worse than webview.

Just change some code of the expo-example, and you will rebuild my demo.

    const cubeList = [];
    for (let i = 0; i < 100; i++) {
      const cube = new IconMesh();
      scene.add(cube);
      cube.position.setX(i%10-5);
      cube.position.setZ(i/10-5);
      cubeList.push(cube);
    }

    camera.lookAt(0, 0, 0);

    function update() {
      cubeList.forEach(cube=>{
        cube.rotation.y += 0.05;
        cube.rotation.x += 0.025;
      });
    }

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.