Many timers or one timer
#1

Hi !

I have one question concerning the timers, it's better to use only one big timer or many timers with the same refreshed times ?

This is my current only one timer : https://pastebin.com/kyLJeAx7

Thanks you in advance.
Reply
#2

Having multiple timers with little chunks of code is generally preferred over having one timer with lots of code. For better optimization use prime numbers for the intervals so there is less chance of timers colliding.
Reply
#3

This tutorial might help you, take a look : CLICK
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)