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.
Pages: 1
So you won't need to load 100+ offline friends everytime
It will slightly decrease lobby lag and you'll load friends much faster
Offline
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
well, there is a 20 MB difference
Offline
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
thanks hg for making this much better and ty for my avatar aswell
Offline
2 things
1. You forgot to remove the scroll bar.
2. Flash is bad
Offline
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
Gosha wrote:well, there is a 20 MB difference
http://i.imgur.com/aAq4G72.pngThat 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
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
____
Gosha wrote:well, there is a 20 MB difference
http://i.imgur.com/aAq4G72.pngThat 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
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
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 nameI 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
Pages: 1
[ Started around 1713552589.6181 - Generated in 0.095 seconds, 10 queries executed - Memory usage: 1.58 MiB (Peak: 1.75 MiB) ]