Game Development Community

Why seconds instead of milliseconds?

by Stefan Lundmark · in Torque Game Engine · 06/02/2006 (6:16 am) · 3 replies

Hello,

I've been wondering about this for a while.

Take imageStates for example.

stateTimeoutValue[5]             = 0.066;

rather than:

stateTimeoutValue[5]             = 66;

Why are they based on seconds instead of milliseconds?

#1
06/02/2006 (6:30 am)
I will go with, this is something exposed to script, customizing weapons would be something modders would inheriantly do. Possible it is more friendly for more people to understand using seconds rather than milliseconds.

but only GG really knows
#2
06/02/2006 (7:26 am)
I would go with something more like: programmers aren't the paragons of consistency they'd like to be.

anthony's explanation is way more generous.

actually, when i'm creating a value which will be exposed to users/modders, i do try to give it convenient units.
for example seconds over milliseconds, degrees over radians, antiwiddershins over clockwise, etc.

but most important of all is to document whatever units you are using, of course.
#3
06/02/2006 (8:49 am)
That makes sense. Modding or just the fact that it wasn't consistant.