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-26 16:30:42

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

Any performance benefits of CreateJoinRoom over JoinRoom?

If I were to list the lobby to determine if that room exists and call JoinRoom versus just using CreateJoinRoom, would it provide a performance/resource/internet/any advantage in any way?

Offline

Wooted by:

#2 2017-06-26 17:05:15

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

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

I'd guess that even if there were any benefits, they'd be so small that you wouldn't notice them as creating the room is a one time thing so it wouldnt have any effect after you've actually connected

Offline

#3 2017-06-26 17:08:47

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

If its a new world, how would it call joinroom if there hasnt been a world made?


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#4 2017-06-26 17:28:10

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

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

Xfrogman43 wrote:

If its a new world, how would it call joinroom if there hasnt been a world made?

You check if it is already created, and only call JoinRoom if it is (and call CreateJoinRoom otherwise)

Offline

Wooted by:

#5 2017-06-26 17:38:50

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

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

yes
you don't have to load version from bigDB

Offline

#6 2017-06-26 17:57:48

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

Gosha wrote:

yes
you don't have to load version from bigDB

Just wanted to point out that loading version from bigDB isn't obligatory unless you want too, although it is the best.


And yes there is a benefit, less bandwidth usage.
When calling CreateJoinRoom PlayerIOClient attempts to call CreateRoom on their servers, to open a new server if it isn't open already.

However, those changes aren't noticed and they do no real impact on the bot.


http://i.imgur.com/bjvgH5L.png?1

Offline

#7 2017-06-26 23:09:05

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Any performance benefits of CreateJoinRoom over JoinRoom?

I think you'll probably end up being less efficient by first checking the entire lobby and then determining what method to use versus just taking the easy route, but that's purely based off assumptions.

Offline

Wooted by:
den31071498514945665620

Board footer

Powered by FluxBB

[ Started around 1714053526.2941 - Generated in 0.042 seconds, 13 queries executed - Memory usage: 1.44 MiB (Peak: 1.56 MiB) ]