Tick or Timer ?

  • 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/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

Amizaur

FNG / Fresh Meat
Aug 18, 2006
275
3
0
44
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...