Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-06-24 16:14:15, last edited by Gosha (2017-06-24 16:18:20)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Split Online and Offline Friends

So you won't need to load 100+ offline friends everytime
It will slightly decrease lobby lag and you'll load friends much faster

for pros

hKPfHI6.png

Offline

Wooted by: (4)

#2 2017-06-24 17:47:34

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
Website

Re: Split Online and Offline Friends

Gosha wrote:

It will slightly decrease lobby lag and you'll load friends much faster

prove it


Discord: jawp#5123

Offline

#3 2017-06-24 18:30:55, last edited by LukeM (2017-06-24 18:31:27)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Split Online and Offline Friends

MrJaWapa wrote:
Gosha wrote:

It will slightly decrease lobby lag and you'll load friends much faster

prove it

Well it will obviously decrease lag, and make it faster to load, but the question is by how much...
For me, it only takes a fraction of a second to load them anyway, so it wouldnt be much of an improvement, even if it made it almost instantaneous

Offline

Wooted by:

#4 2017-06-24 19:52:16

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: Split Online and Offline Friends

well, there is a 20 MB difference
aAq4G72.png

Offline

Wooted by:

#5 2017-06-24 20:23:33

peace
Member
From: admin land
Joined: 2015-08-10
Posts: 9,226

Re: Split Online and Offline Friends

is it poss to make friends stattus auto chage if u are in lobby staring at frineds so you will see when seomeone joined a world instead of clikcing on freinds 100 times watching where your friend goes if u follow him


peace.png

thanks hg for making this much better and ty for my avatar aswell

Offline

#6 2017-06-24 21:45:26

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 1,206

Re: Split Online and Offline Friends

2 things

1. You forgot to remove the scroll bar.
2. Flash is bad

Offline

#7 2017-06-24 22:25:33

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Split Online and Offline Friends

Gosha wrote:

well, there is a 20 MB difference
http://i.imgur.com/aAq4G72.png

That doesnt seem right... Are you sure it isnt something else causing it? Have you tried loading them in different orders or something, and maybe recompiling or whatever the normal version just incase that changes anything?

Offline

Wooted by:

#8 2017-06-25 01:42:52

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: Split Online and Offline Friends

destroyer123 wrote:
Gosha wrote:

well, there is a 20 MB difference
http://i.imgur.com/aAq4G72.png

That doesnt seem right... Are you sure it isnt something else causing it? Have you tried loading them in different orders or something, and maybe recompiling or whatever the normal version just incase that changes anything?

are u being a dummer rn

Offline

#9 2017-06-25 05:11:43, last edited by Gosha (2017-06-25 05:31:31)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: Split Online and Offline Friends

Latif wrote:

2 things

1. You forgot to remove the scroll bar.
2. Flash is bad


1) first picture was made in paint yes. It has some mistakes but whatever
2nd picture is a functional client

2) flash is bad but it has nothing to do with this


____


destroyer123 wrote:
Gosha wrote:

well, there is a 20 MB difference
http://i.imgur.com/aAq4G72.png

That doesnt seem right... Are you sure it isnt something else causing it? Have you tried loading them in different orders or something, and maybe recompiling or whatever the normal version just incase that changes anything?

The only thing I did was adding 'if' statement
If(online) do stuff
Else just skip a friend

It shouldn't be a surprise that it uses so much memory
Class FriendItem is not just a little class with 6 variables (world id,  world name,  friend name, is online,  has gold border, smiley id)
It is a big class
And when it creates ~100 FriendItems of offline users it easily can get to 20MB

Offline

#10 2017-06-25 10:13:18, last edited by LukeM (2017-06-25 10:14:10)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: Split Online and Offline Friends

I still dont see how it can be 20MB...

If it were to be 20MB, each one would have to be 200KB
(from checking the clients code) each friend needs to store a username, a type, the time they were last seen, whether they are online, whether they are in a world, their smiley (id, and it seems 2 bitmaps? or maybe just references), whether they have a gold border, a smiley holder (idk what it is), a world ID and a world name

I dont see how this can add up to 200KB... even the graphics as 16x16 32 bit images shouldnt be that much... (4 * 16 * 16 = 1KB each)

Offline

#11 2017-06-25 17:46:08

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: Split Online and Offline Friends

destroyer123 wrote:

I still dont see how it can be 20MB...

If it were to be 20MB, each one would have to be 200KB
(from checking the clients code) each friend needs to store a username, a type, the time they were last seen, whether they are online, whether they are in a world, their smiley (id, and it seems 2 bitmaps? or maybe just references), whether they have a gold border, a smiley holder (idk what it is), a world ID and a world name

I dont see how this can add up to 200KB... even the graphics as 16x16 32 bit images shouldnt be that much... (4 * 16 * 16 = 1KB each)

the magic of un-optimization

Offline

Wooted by:
SirJosh39171498409168665471

Board footer

Powered by FluxBB

[ Started around 1713552589.6181 - Generated in 0.095 seconds, 10 queries executed - Memory usage: 1.58 MiB (Peak: 1.75 MiB) ]