I have two functions for drawing a 3D line. Function uint32 getVertCount()
determines the number of vertices I'll need to allocate, while function void setVerts(void * v)
also determines the number of vertices, using the same math and inputs while doing unrelated math throughout, and assumes this count matches what the first function determined.
These functions run in different threads on the same CPU, using 32-bit float
. The number of vertices needed is very sensitive to small variations in the count calculation.
Can I assume these functions will arrive to the same count always, given the same inputs and given I write the count calculation with the same operations in the same order?