Performance VS Rmmv conditional, Conditional+Else or Condition Javascript.

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
Hi guys.
I have question for Rmmv team Dev.
What is more performance if i need use a common event, with Multi conditional.


I speak in relation to the execution time in MS

1: use the rmmv core conditional With Else imbrication like thats ???

◆Si:ID PictureCallCommon = 28
  ◆Commentaire:menu item
  ◆
:Autre
  ◆Si:ID PictureCallCommon = 31
    ◆Commentaire:menu action
    ◆
  :Autre
    ◆Si:ID PictureCallCommon = 34
      ◆Commentaire:Satus menu
      ◆
    :Autre
      ◆Si:ID PictureCallCommon = 37
        ◆Commentaire:Quest Progesstion
        ◆
      :Autre
        ◆
      :Fin
      ◆
    :Fin
    ◆
  :Fin
  ◆
:Fin

or


2: use the rmmv core conditional Without else but (ExitCommonEvent) like thats ???

◆Si:ID PictureCallCommon = 28
  ◆Commentaire:menu item
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 31
  ◆Commentaire:menu action
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 34
  ◆Commentaire:menu status
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin
◆Si:ID PictureCallCommon = 37
  ◆Commentaire:menu quest
  ◆Sortir du Traitement de l'Év.
  ◆
:Fin

or


3: use the Boxscript implementation conditional like thats ???

if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}else if (variable==??) {
}





What is more fast with the rmmv core execution (MS latency)


Tanks i lot
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
It really won't make a difference, I'd bet, but you can always try to run tests to see which one is faster. Just put the commands in a loop, and use the "console.time('label')" and "console.timeEnd('label')" commands before and after the loop respectively.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
It really won't make a difference, I'd bet, but you can always try to run tests to see which one is faster. Just put the commands in a loop, and use the "console.time('label')" and "console.timeEnd('label')" commands before and after the loop respectively.
ok tanks for this 


console.time('label')" and "console.timeEnd('label')"


i will make some test
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top