4 ms·
Superpacking provides performance penalties. (Say that three times fast.) Some of that code will run slower (like having to execute functions multiple times in
by coderdude 15y ago
Superpacking provides performance penalties. (Say that three times fast.) Some of that code will run slower (like having to execute functions multiple times in a loop). It seems like the author would be more concerned with performance given the nature of the code he's writing (WebGL).
- daeken 15y agoThis absolutely impacts performance for JS code in general, but has no performance impact whatsoever for WebGL demos like this. All of the work happens within the shader -- the entire goal of the WebGL code is to compile the shader, set parameters on it, and draw two triangles per frame. Everything else happens there. Removing all these tricks might get you -- at most -- a 1 fps boost.
- greyfade 15y agoNot when you're trying to hit a size limit. At that point, performance is only a secondary concern.