three.js - How do you resize a canvas without flicker? -
many of three.js samples flicker when window resized or have white border frame. example: http://threejs.org/examples/webgl_animation_skinning.html
on other hand webgl aquarium not flicker. how done?
you need call render straight away after resizing window size.
even better can have requestanimationframe
, resize , render in 1 function call. make sure reflow , render happens straight away in 1 reflow, rather separate leads flickering.
Comments
Post a Comment