How Can The Times Be Different?

Blitz3D Forums/Blitz3D Beginners Area/How Can The Times Be Different?

Something else to bear in mind is that the CPU may be caching similar blocks of code, which will cause a slowdown as the code is cached, and a speedup due to additional blocks of code being executed from the cache.

Writing robust code often means not making too many assumptions about the results returned by that code. Things like timing, float operations, etc, are often imprecise out of necessity, and you need to code with that in mind.