The Daily Click ::. Forums ::. Klik Coding Help ::. Is it bad to have condition doubles?
 

Post Reply  Post Oekaki 
 

Posted By Message

noahsummers



Registered
  17/01/2010
Points
  64
14th February, 2010 at 23:21:50 -

For example, I have several plain "Always" conditions under different event groups for better readability. This is only a visual representation, and these won't actually be checked separately every step, right?

Edited by noahsummers

 
eight bit believer

nim



Registered
  17/05/2002
Points
  7233
14th February, 2010 at 23:34:14 -

It's better practice, I suppose, to only have one "Always" event, but I wouldn't worry about having more. Sometimes it's and necessary, and it won't effect the performance.

 
//

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
14th February, 2010 at 23:34:50 -

There's nothing wrong with it - it's not going to make the slightest bit of difference to performance, and like you say, it makes code more readable (especially with the lame way the event list scrolls).

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
14th February, 2010 at 23:56:22 -

Sometimes it may be necessary. Order of events is a pain in the pastoogus.

 

  		
  		

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
15th February, 2010 at 00:14:50 -

It's not really a big deal at all, especially for what OMC mentioned. Sometimes it's highly necessary for order of events. Just remember, the more events you have, the longer it takes for a whole loop to be processed. The amount of time reduced is beyond minuscule, however if you make a habit of having like 50+ duplicate events over the process of making a complex game, you're going to notice an unnecessary impact on slower systems.

Still not much at all, but an impact that wouldn't even be there if it weren't for those additional events.

 
http://www.facebook.com/truediamondgame

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
15th February, 2010 at 16:10:39 -

It's actually good practice. These days, it's much better to have many lines of code that are easy to read, than tiny improvements in processing time. Especially with MMF! Programming languages are quite easy to read on the spot.. MMF's event system is easy to learn and compact, but can get tough to read, any small bit helps.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click