#Scoreboard TPS

1 messages · Page 1 of 1 (latest)

crystal basin
#

tps is a list of 3 values

#

last minute would work too

#

scoreboard is iffy at times try toggle scoreboard of player on before the while loop
atleast has been for me

#

just above while also do note tps is a number not a string make sure you set it as string

#

set line 3 of player's scoreboard to {_tps} -> do "%{_tps}%"

above while loop

toggle scoreboard of player on # this shouldn't be forced I believe tho
while blah
#

we all will

#

Ahmad I know I already sent him what to do to fix it

#

have you relogged @zenith ruin ?

#

variables: is only default values for the most part they won't be effected if he sets it in the code
the true stuff won't matter

tight berry
#

you want to indent this btw

crystal basin
#

Sup Wrex

tight berry
#

unless you want to delete everyone's stats

#

debug it

#

see if it passes your conditions

crystal basin
#

when you realize

#

Ahmad you see it yet?

tight berry
#

while is better for performance

crystal basin
#

while loop > loop all players

tight berry
#

unless they can relog in less than a second and stack multiple loops
but that can be fixed too

#

and wont really happen

crystal basin
#

I doubt they can load more than 2 loops tho

tight berry
#

well it doest matter
but a while is a bit more efficient

crystal basin
#

I'd only use loop all players if I have a scoreboard update function otherwise I'd use while

only reason for it is functions are a separate code block

#

whiles are still better as it isn't attempting to loop all players every x seconds only every x seconds after they join

#

they split the work load more which is many times better for tps with high players

tight berry
#

while is better because it takes the load off that single tick and splits it
every second would perform everything for all players at the same time
while will be a different time for each player

crystal basin
#

forgot to move toggle scoreboard back 1

tight berry
#

If you care about performance you would only update the lines that need updating in specific events
e.g. Kills or death lines would be updated on death
static lines wont be updated at all

crystal basin
#

default values?

#

I mean he already does fake it XD

#

{_tps} isn't updated

#

he doesn't what "Fakery" but Fakery