Pin VS set postion every tick

Discussion and feedback on Construct 2

Post » Mon Feb 24, 2014 3:24 pm

Hello all

Anyone can tell if the pin behavior better than the every tick set postion.
As i know the every tick code can make the fps drop down if you use it to much, what about the pin, is it the same?

Thank's for any help
B
7
S
1
Posts: 65
Reputation: 586

Post » Mon Feb 24, 2014 4:15 pm

If you look at the pin code, I'm pretty sure it's doing almost the same thing. Basically instead of every tick, it runs right after a tick, so when objects move, it adjusts it. It isn't Event driven if that is what you are asking.
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Post » Mon Feb 24, 2014 5:12 pm

There is no performance difference, they both do the same thing. 'Every tick' is usually harmless for performance. See Optimisation: don't waste your time
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Tue Feb 25, 2014 11:58 am

Thank's alot
B
7
S
1
Posts: 65
Reputation: 586


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests