Sphere
Log in Join
☆ 11

Shader compilation stutter only the first time a level loads

The first time each enemy type appears the game freezes for about 200 ms. Later appearances are fine. Mostly noticeable on a phone.

⚑ Report

3 replies

☆ 0
M Mira ·2026-10-15#1

That is pipeline compilation. In 4.x you can precompile shaders at startup or simplify materials for the mobile renderer.

⚑ Report
☆ 0
S Sven ·2026-10-15#2

I am using Forward+ on desktop and Compatibility on mobile. The phone still stutters.

⚑ Report
☆ 0
G gremlingremlinx ·2026-10-15#3

Try running with --rendering-method gl_compatibility during testing and put the worst materials on a simple shader. Also call ResourceLoader early with a loading screen.

⚑ Report
Log in to reply.