Minor performance optimization
Author: tmrun,
published 8 months ago,
This is a minor performance optimization. To be precise, I've moved the logic responsible for shrinking objects from the CPU (JavaScript) to the GPU (GLSL, Vertex Shader), which makes the shrinking animation smoother and reduces CPU-to-GPU bandwidth as well as CPU usage, especially when a lot of objects are shrinking, but slightly increases the overall GPU usage. While at it, I've also removed some unnecessary bounce checks for disappearing objects (around the main and at window borders), to further reduce CPU usage.
Best Regards,
Danijel Tkalcec