4 ms·
This is too brutal, you have to consider the application domain. For physics simulations I would agree with you. For signal processing or graphics applications
by yaantc 12y ago
This is too brutal, you have to consider the application domain. For physics simulations I would agree with you. For signal processing or graphics applications float is usually perfectly fine (and even overkill for many DSP applications).
People mentioned the cache efficiency gain with floats, and that is already relevant to rust. If in the future maybe rust could be used for GPGPU, then the difference between float and double often becomes even more dramatic. You definitely want to keep float support for this.
- kibwen 12y agoPackets for networked multiplayer games are another place where half-precision floats are acceptable: http://www.gamasutra.com/blogs/MarkMennell/20140929/226628/Making_FastPaced_Multiplayer_Networked_Games_is_Hard.php http://www.gamasutra.com/blogs/MarkMennell/20140929/226628/M... (Though it must be said that Rust doesn't actually have a 16-bit float type at all.)