Hello everyone, I am working on the Level system, where user gets 1 exp every second.
The question I have is what’s better:
- Make 1 cycle where I loop through every player and give exp
- Make cycle for each player where I give them exp
Thank you
Hello everyone, I am working on the Level system, where user gets 1 exp every second.
The question I have is what’s better:
Thank you
Please provide your code in the code review category. If you need help with coding, move this to #help-and-feedback:scripting-support.
To answer your question, the first option is better. Reducing thread counts will significantly reduce performance issues throughout the server.