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

Lots of forEach calls in source code #45

Closed nicknikolov closed 5 years ago

nicknikolov commented 6 years ago

Since ctx is very low level maybe we should try to keep function garbage low and replace those with arrays?

dmnsgn commented 5 years ago

Following: https://jsperf.com/for-vs-foreach/75 forEach replaced with for loops