Low-end mobile devices (4GB RAM) rendering mesh/car models with flat/pointy shading despite

Hi everyone,

I am building a standalone HTML 3D arcade racing game using Three.js (no web-based editor). The game runs completely fine on high-end PCs, but I am facing a weird visual bug on low-end mobile devices and PCs (specifically with 4GB RAM).

On these lower-end devices, the car models look completely pointy, blocky, and flat-shaded. Additionally, all the metallic glossiness and environment map reflections completely disappear, making the car look “zero gloss.”

Here is how my graphics tiering and materials are structured in the code:

javascript

// A dynamic tier system targets 'low' for mobile/4GB RAM:
const P = {
  low:  { aa: false, dpr: 1.25, shadowRes: 1024, mat: 'phong' },
  mid:  { aa: true,  dpr: 1.5,  shadowRes: 1024, mat: 'standard' },
  high: { aa: true,  dpr: 2,    shadowRes: 2048, mat: 'standard' }
}[tier];

// Material generation:
if (GFX.matMode === 'phong') {
  m = new THREE.MeshPhongMaterial({ 
    color, 
    specular: 0xffffff, 
    shininess: g.shine, 
    envMap: ENV.cube, 
    reflectivity: g.refl, 
    combine: THREE.MixOperation 
  });
  m.flatShading = false; // Forced false, but still renders pointy on mobile!
}

Use code with caution.

What I have tried so far:

  1. I explicitly set m.flatShading = false inside my material loop.
  2. I adjusted the shininess and reflectivity constants for the Phong material fallback path.
  3. The model setup relies on custom canvas-generated environment maps (THREE.CubeTexture) for the reflections.

Despite these adjustments, the mobile web browsers seem to ignore the smooth shading, rendering the cars with sharp, ugly polygon facets and zero lighting highlights.

Could this be a WebGL context limitation forcing low-precision shaders on mobile, or am I missing a vertex normals recomputation technique like geometry.computeVertexNormals() for cloned custom meshes? Any advice on how to keep the cars smooth and metallic on 4GB RAM devices without destroying the frame rate would be highly appreciated!

Thanks in advance!

The clue I’d chase is that only the ‘low’ tier shows it, and ‘high’ uses the same meshes, so the normals are probably fine and the Phong path is the suspect, not the phone. Force tier ‘low’ on desktop to confirm. Then two checks on the device: renderer.capabilities.precision, because pow(dot, shininess) in a mediump fragment shader breaks down at high shininess and takes the highlights with it; and your canvas cube faces against capabilities.maxCubemapSize (plus needsUpdate = true after drawing), since a missing env map alone makes metal read flat. Side note: flatShading already defaults to false. Does ‘mid’ look right on the same phones?