Skip to main content
codeifying
Source Link
House
  • 73.5k
  • 17
  • 188
  • 276

Most games have a function that calculates the current time -- perhaps using QueryPerformanceCounter()QueryPerformanceCounter(), perhaps using GetTickCount64()GetTickCount64(), perhaps using something else. Normally this function is designed so that it initially returns zero, and then gradually returns larger numbers.

What the author is saying (and I can be definitive about this because I am the author) is:

  • The first value returned should be 2^32 instead of zero and it should smoothly increment from there.
  • The return value should be a double, not a float.
  • Comments on the article itself instead of here would be better.

Most games have a function that calculates the current time -- perhaps using QueryPerformanceCounter(), perhaps using GetTickCount64(), perhaps using something else. Normally this function is designed so that it initially returns zero, and then gradually returns larger numbers.

What the author is saying (and I can be definitive about this because I am the author) is:

  • The first value returned should be 2^32 instead of zero and it should smoothly increment from there.
  • The return value should be a double, not a float.
  • Comments on the article itself instead of here would be better.

Most games have a function that calculates the current time -- perhaps using QueryPerformanceCounter(), perhaps using GetTickCount64(), perhaps using something else. Normally this function is designed so that it initially returns zero, and then gradually returns larger numbers.

What the author is saying (and I can be definitive about this because I am the author) is:

  • The first value returned should be 2^32 instead of zero and it should smoothly increment from there.
  • The return value should be a double, not a float.
  • Comments on the article itself instead of here would be better.
Source Link

Most games have a function that calculates the current time -- perhaps using QueryPerformanceCounter(), perhaps using GetTickCount64(), perhaps using something else. Normally this function is designed so that it initially returns zero, and then gradually returns larger numbers.

What the author is saying (and I can be definitive about this because I am the author) is:

  • The first value returned should be 2^32 instead of zero and it should smoothly increment from there.
  • The return value should be a double, not a float.
  • Comments on the article itself instead of here would be better.