Tic: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with "A '''tic''' is each time unit in-game. By default 1 second equals 30 tics. From the original source code: #define TICRATE (120) #define TICSPERFRAME (TICRATE/26) Because of..."
 
Hank (talk | contribs)
mNo edit summary
Line 2: Line 2:


From the original source code:
From the original source code:
  #define TICRATE (120)
  // this used to be TICRATE/GAMETICSPERSEC, which was 120/26 = 4.615~ truncated to 4 by integer division
  #define TICSPERFRAME (TICRATE/26)
  #define TICSPERFRAME       4
Because of truncation, the defined amount of 26 has the same effect of 30.
#define TICRATE             120

Revision as of 19:13, 31 May 2012

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

From the original 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