to add to what b0ne123 has already said, your best bet is to calculate the minerals every second and store it in a global array, then every 60 seconds allocate the amount of minerals stored in the array. if you allocated once a second, baring in mind minerals are integers, it wouldn't be as accurate as using a global array.
to add to what b0ne123 has already said, your best bet is to calculate the minerals every second and store it in a global array, then every 60 seconds allocate the amount of minerals stored in the array. if you allocated once a second, baring in mind minerals are integers, it wouldn't be as accurate as using a global array.
edit: and yea, this is not a data problem ;-)