|
|
|
|
|
by chengsun
4453 days ago
|
|
Řrřola (a famous demoscene coder [1]) found a far better constant than the original (a 2.7-fold accuracy improvement) by using an optimisation algorithm over all three constants present in the original inverse square hack. His algorithm and the result (along with a plot of relative error) can be found on his blog [2]. [1]: See, for example, this 256-byte raycaster https://www.youtube.com/watch?v=R35UuntQQF8 [2]: http://rrrola.wz.cz/inv_sqrt.html |
|