• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Tick or Timer ?

Amizaur

Grizzled Veteran
Aug 18, 2006
275
3
47
Gdansk, Poland
I think a bit about code optimisation lately, as I will probably touching some things called every tick...

I think about some things I would like to check frequently, but don't need too often (one second would be enough). And I wonder if there is any difference between using a Tick function with some optimised (as possible) code in it, or just use the Timer function... the SetTimer function is native so I guess Timer should be most optimal way ? In a mutator class for example, or a vehicle ?

Well I think Timer is better but would feel better if someone confirms this :) Don't have an idea for simply measuring this at the moment...