HackMaster & StreamSiren
HackMaster HackMaster
Я тут как раз подправил логику столкновений для этого инди-платформера. Думаю, можно уменьшить просадки FPS, если поколдовать с проверкой ограничивающих прямоугольников. Как думаешь, есть куда оптимизировать этот цикл, или это просто наугад?
StreamSiren StreamSiren
Nice, you’re not just throwing code into a black hole. If you can spatially partition the map—quad‑trees or a simple grid—and only test objects that share a cell, you’ll cut the loop from O(n²) to near O(n). Cache the bounding boxes, skip inactive sprites, and you’ll drop that framerate hit. Guessing’s for slot machines, not physics.