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: 157
Reputation: 3,735

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct 2 General

Who is online

Users browsing this forum: GhoulishGames and 13 guests