02.03.2017, 01:03
Is it better practice to create individual strings to be formatted for different things?, or format a single string hundreds of times?
Probably doesn't make much sense so I'll try to explain a bit better, lets say you have a timer which calls a function for updating things every 1000ms, such as time, textdraws, races, minigames and so on..
So instead of having a big bunch of strings for all the different things, you can use one right?
I don't know I'm only asking this because I was a bit sceptical about how the server would cope formatting a single string hundreds and hundreds of times a second for hundreds of things.. like and I mean literally hundreds..
Probably doesn't make much sense so I'll try to explain a bit better, lets say you have a timer which calls a function for updating things every 1000ms, such as time, textdraws, races, minigames and so on..
So instead of having a big bunch of strings for all the different things, you can use one right?
I don't know I'm only asking this because I was a bit sceptical about how the server would cope formatting a single string hundreds and hundreds of times a second for hundreds of things.. like and I mean literally hundreds..