Would you like to react to this message? Create an account in a few clicks or log in to continue.

Float precision

2 posters

Go down

Float precision Empty Float precision

Post by ArchiDevil 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?


Posts : 21
Join date : 2011-07-26

Back to top Go down

Float precision Empty Re: Float precision

Post by Slaihne 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.

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

Back to top Go down

Back to top

- Similar topics

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