Performance question

Discussion and feedback on Construct 2

Post » Thu Apr 04, 2013 9:15 am

Its faster get/set from global/local variables than get/set from dicctionary?

Im working on a android app and in some cases i must access to values that are in a dicctionary every frame, but these values are changed on events (that are not called every frame necesarily) so i dont know if its better call directly the dicctionary value every frame or put the value into a variable in the event.ByR2013-04-04 09:19:01
B
31
S
7
G
2
Posts: 159
Reputation: 3,739

Post » Thu Apr 04, 2013 1:59 pm

Have a read of Optimisation: don't waste your time. Worrying about this issue is a complete waste of time and will probably never make any difference at all, so use whichever you find most convenient.
Scirra Founder
B
383
S
225
G
86
Posts: 24,118
Reputation: 190,544


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests