pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Check framebuffer status only in debug mode #81

Closed vorg closed 4 years ago

vorg commented 4 years ago

Here https://github.com/pex-gl/pex-context/blob/master/framebuffer.js#L133

It causes massive CPU penalty in Chrome and minor in Safari

vorg commented 4 years ago

Fixed in https://github.com/pex-gl/pex-context/commit/22ac35f2974ac4ddcad31d2a3078de8bf5270c91