Im wondering what is more efficient when you need to do something frequent on each player.
The frequency is about every 20 seconds.
- Setting a global set_task then loop through all the players do code.
Doing one task still requires the CPU to check every cycle if it is time to do the task then cycle through all players.
- Seting a set task on ID, which could result to have 4 tasks being set at a given time, avoids using player loop.
This is a question without knowing what code the function will be handling so I'm expecting an answer excluding that.
I'm also wondering if get game time with a forward think would be more efficient instead, so if you got answers on that they are welc0me.