Performance Question - For Loop or Picking

Get help using Construct 2

Post » Sun Apr 06, 2014 2:18 pm

As an example situation:

    Sometimes I use actions on objects that are pinned to other objects, and I've found two working methods:
  • Use a for loop and perform the action on the condition that the pinnedUID property is equal to the pinned object's UID
  • Use the Pick By Comparison to see if pinnedUID property is equal to the pinned object's UID

I've found the Pick events to be useful for a lot of situations like them, but I'm curious to know if these have much, if not any negative effect on performance.
B
24
S
5
G
1
Posts: 89
Reputation: 3,015

Post » Sun Apr 06, 2014 6:40 pm

Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Mon Apr 07, 2014 6:39 pm


If you saw the project files I'm using, optimization is pretty hard to ignore. :P
B
24
S
5
G
1
Posts: 89
Reputation: 3,015


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dop2000, facecrime and 10 guests