Float precision

View previous topic View next topic Go down

Float precision

Post by ArchiDevil on Sat Sep 24, 2011 2:05 am

Slaihne, how do you go over not good float precision?
You use player coordinates (when we start new game we select start coords from [~17k; ~45k]) such near to bugs with precision. In my engine they are about 50k.
P.s. you use +17k coords because engine can't work with negative coords, aren't you?

ArchiDevil

Posts : 21
Join date : 2011-07-26

View user profile

Back to top Go down

Re: Float precision

Post by Slaihne on Sat Sep 24, 2011 2:41 am

I'll probably have issues with float precision at some stage since i haven't done anything out of the ordinary to deal with it. I'll probably end up moving over to an int / float pair to hold coordinates, or something similar.

And yes, my engine doesn't like negative coords. Well to be precise, it doesn't like the cross over from 1 to -1.
avatar
Slaihne

Posts : 264
Join date : 2011-03-17
Age : 49

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum