3 ms·
> The initial version must have been checking each room for collisions (a long process) before checking whether it fit within the level bounds (a short process)
by samnardoni 13y ago
> The initial version must have been checking each room for collisions (a long process) before checking whether it fit within the level bounds (a short process), so manually sequencing it with if-then-else led to a spectacular 268% improvement.
Or just change `(checkColl tr rsDone || checkBound tr)` to `(checkBound tr || checkColl tr rsDone)`.