Closed Gummibeer closed 6 years ago
It adds the info screen everytime the function runs - have to do it just once per round.
Move it inside the setTimeout
in the joinZone
function where it sets the gameCheck intervalFunc, then it loads the planet and base and only inserts the info box once.
Yes as @Wiethoofd says. I tested @Gummibeer code and i got big frame drops in the game. I started a pull request where i output the info into the console. See #32
Closed by 16703828c1069b8a3d8176f63a2e5475a1696314
This only tries to add the profile box once at the beginning of a round, and if one already exists, the existing box is destroyed to make room for the new box. Keeping memory down.
adds: #19