What is a tick?
Moderator: Forum Moderators
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
What is a tick?
In my wesnoth log I'm seeing:
What is/how long is a tick?
Code: Select all
Initilizing teams took 3 ticks.
Initilizing total took 10 ticks.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: What is a tick?
One tick is 10 nano seconds. Depending on what you're using as a frame of reference.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Re: What is a tick?
A cursory look at the code in question shows that the values displayed come from
(Moved to Coders’ Corner.)
SDL_GetTicks()
calls, so one “tick” in this particular context is purportedly equivalent to 1 millisecond.(Moved to Coders’ Corner.)
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: What is a tick?
A wiser mind than mine.shadowm wrote:A cursory look at the code in question shows that the values displayed come fromSDL_GetTicks()
calls, so one “tick” in this particular context is purportedly equivalent to 1 millisecond.
(Moved to Coders’ Corner.)
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Re: What is a tick?
hmm this log was added by me for testing the performance of the mp replay feature, i wanted to rmeove after i finished but it seems like i forgot.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.