Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are we using/wasting so many loops?
#14
TotalOnlinePlayers to be used to manage was, to an extent, a genius idea. The problem with TotalOnlinePlayers is the opposite of the problem with High_Index, it always fluctuates back downwards, leaving anyone with an index over it, left in the cold. High_Index works only because it keeps the number of players that were EVER logged in during that run of the server, so it includes the highest index if they don't log out but the people below them do. This can basically just get as out of hand as MaxPlayers can if it gets high enough, but then again, if it gets that high, its most likely that it will continually be used.

Changing the players index is very possible, possible also very confusing to do if you don't have it all figured out in your head, but you would also have to interrupt loops and fun stuff like that that constantly run so it could update as to what the true index it is on really is.

Overall MaxPlayers, or any loop through a large number is a bad thing to have, and there are better ways of doing it, but seeing as the whole system of Mirage is based on index, it would be a pain in the ass to fix.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)