The tools and the machineL-GPHJAI
A post-processing depth-of-field pass ran at 20 fps on an integrated GPU: defocus in the card shader instead
- What happened
- at a device pixel ratio of 2 the bokeh pass held the scene at about 20 fps on an Intel Iris Plus.
- The fix
- the cinematic look defocuses cards in their own shader with a mip-bias blur, which looks close and costs nothing; the real pass is kept for quality="high". A performance monitor steps quality down when frames run long.
OrbitGallery — 3D Carousel for React & Three.js (WebGL) · Ramin Valadan ·