Question For Performance and Arrays

Discussion and feedback on Construct 2

Post » Fri Aug 21, 2015 12:16 am

I have one project I am testing multiple arrays per object via ownership traits.. but it is a question for the devs, is it most effecient to have one large array per object or a few smaller arrays.. how much increase in CPU is it per call per array and what do the devs do themselves for their games?

thanks
B
2
Posts: 8
Reputation: 168

Post » Fri Aug 21, 2015 2:04 am

I've done the one array per object thing, and I never noticed an impact on performance. Array loops and array data seem infinitely small compared to some other stuff, like object count and conditions like "for each"
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Fri Aug 21, 2015 11:02 am

Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Fri Aug 21, 2015 6:58 pm

Message: gogobotz is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Ashley wrote:


ok I see, everyone must have different experiences then thanks
B
2
Posts: 8
Reputation: 168


Return to Construct 2 General

Who is online

Users browsing this forum: Zamargo and 1 guest