CodingTrain / CodingTrain/Coding-Challenges
145_Ray_Casting - optimice performance by using square distance
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 189
- Fork
- 86
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
when using dist only for compare, its better to use the `square distance`. Because otherwise quare-root needs to be calculated which is much more cpu heavy.
https://github.com/CodingTrain/Coding-Challenges/blob/2a9d68112b1aa80cbd5aa303f1d97dda7b045fde/145_Ray_Casting/P5/particle.js#L29
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.