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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -