I would be interrested to know if the compiler in .NET can detect a simple division by 2 and form it to a multiplication by 0.5.
Just thought about it, probably that would be a small part where I can improve my game code.
(Actually I wouldnt worry about that normally, but it’s something I could easily think of in the future when I write game code.)
Does actually myFloat/2 get treated the same way as myFloat/2f?
Oftentimes division by two will be changed into bit shifting. A left shift multiplies by two, a right shift divides by two. Bit shifting is much easier for a processor to do than multiplication or division.