kwg / InfiniteArtGallery

Infinite Art Gallery is a game that uses established methods of evolving art with Compositional Pattern Producing Networks (CPPNs) to allow users to explore a world of art tailored to their preferences.
https://people.southwestern.edu/~schrum2/SCOPE/iag.php
3 stars 0 forks source link

Reduce precision from double to float to improve performance #26

Closed kwg closed 6 years ago

kwg commented 6 years ago

Double might be a bit overkill in this project and float is the standard for Unity anyway. Refactor to use float over double and run comparative tests on speed in producing larger CPPN images

kwg commented 6 years ago

All doubles are now converted to float, but that was not the issue with speed. Speed issue was fixed as well. O(n^2) loops are dangerous