regl-project / regl

👑 Functional WebGL
https://regl-project.github.io/
MIT License
5.22k stars 322 forks source link

Improve comments in core.js and util/codegen.js #200

Open mikolalysenko opened 8 years ago

mikolalysenko commented 8 years ago

That code is not adequately documented and currently very confusing. Sorry.

vorg commented 7 years ago

I would love to see that happening. At the moment i can't say I understand how regl works at I think that's crucial for long term commitment and bigger involvement in the library. Eg. I would love to help with https://github.com/regl-project/regl/issues/312 but have no idea where to start. Commenting on each line of code doesn't make sense but a general architecture and the data flow would help a lot.

crobi commented 7 years ago
vorg commented 7 years ago

Does it just avoid repeatedly analyzing the properties of the argument of the regl() function?

That's my current understanding and unfortunately my current big project require more and more of reduce the number of WebGL state changes, which seems to be on the user side? cc: @mikolalysenko