Dynamic array influence on game performance

Discussion and feedback on Construct 2

Post » Tue Dec 23, 2014 12:48 am

In my game I have a weapons store with 15 types of weapons (maybe more in the future).
I want to use a dynamic array for the player: say he buys a weapon for the first time the array size is 1, so the
array size increases according to each weapon he buys and also the array size decrements for each weapon
the player ends it's stock.
So my question is if the usage of such a dynamic array improves game performance or should I stick with a fixed array size ?
B
5
S
1
Posts: 22
Reputation: 417

Post » Tue Dec 23, 2014 12:57 am

B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679


Return to Construct 2 General

Who is online

Users browsing this forum: Baidu [Spider], rbailey83 and 30 guests