3 ms·
I love this comment in the code: https://github.com/gpujs/gpu.js/blob/develop/src/backend/web-gl2/fragment-shader.js#L40 https://github.com/gpujs/gpu.js/blob/de
by peterkelly 8y ago
I love this comment in the code: https://github.com/gpujs/gpu.js/blob/develop/src/backend/web-gl2/fragment-shader.js#L40 https://github.com/gpujs/gpu.js/blob/develop/src/backend/web...
// Here be dragons!
// DO NOT OPTIMIZE THIS CODE
// YOU WILL BREAK SOMETHING ON SOMEBODY\'S MACHINE
// LEAVE IT AS IT IS, LEST YOU WASTE YOUR OWN TIME
- banachtarski 8y agoAh yes, ye olde IEEE float to int conversion for ancient drivers that don't have good GPU integer support.
- gubbrora 8y agoI don't love it because let's say I really did want to change it, it doesn't tell me how much effort has previously gone into it and what happened. Maybe it means 10h have been spent in vain maybe 10000h. If I want to try my luck that's important.