Tic: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Hank (talk | contribs)
mNo edit summary
No edit summary
 
Line 1: Line 1:
A '''tic''' is each time unit in-game. By default 1 second equals 30 tics.
A '''tic''' is each time unit in-game. By default 1 second equals 30 tics.


From the original source code:
From the EDuke32 source code:
  // this used to be TICRATE/GAMETICSPERSEC, which was 120/26 = 4.615~ truncated to 4 by integer division
  // this used to be TICRATE/GAMETICSPERSEC, which was 120/26 = 4.615~ truncated to 4 by integer division
  #define TICSPERFRAME        4
  #define TICSPERFRAME        4
  #define TICRATE            120
  #define TICRATE            120
Because the word "tic" can mean a variety of other timing units, the less ambigious "game tic" should be preferred.

Latest revision as of 12:05, 25 July 2012

A tic is each time unit in-game. By default 1 second equals 30 tics.

From the EDuke32 source code:

// this used to be TICRATE/GAMETICSPERSEC, which was 120/26 = 4.615~ truncated to 4 by integer division
#define TICSPERFRAME        4
#define TICRATE             120

Because the word "tic" can mean a variety of other timing units, the less ambigious "game tic" should be preferred.