Loop perfomance

Discussion and feedback on Construct 2

Post » Fri Aug 23, 2013 1:01 pm

Hello fellas,

I'm trying to figure out what is the most efficient way of "looping" through data in C2. I'd better explain, what I mean with an example:

I made a convay's game of life with like 40x40 grid. First I looped through all the inatances and compared them with for each "instance" loop - it was slow as hell. Than I saved instance data in the array and looped through the array, which was a way faster, but still sort of slow.

I also noticed FPS rate drops during large nested loops ca. 1000 iterations.

What are the best practices to loop through data in C2? xoros2013-08-23 13:01:55
B
45
S
11
G
4
Posts: 515
Reputation: 7,389

Return to Construct 2 General

Who is online

Users browsing this forum: Baidu [Spider], jakezinis and 2 guests