Hueg Construct Optimization

New releases and general discussions.

Post » Fri Apr 16, 2010 2:54 am

This is an idea, not sure if it has been said before but it hit me in the shower.

I believe this could potentially increase the games performance of construct massively.

What if groups worked like groups, but more like conditions.
If a certain condition wasn't met, I will use my games jetpack code as an example...
Construct will completely ignore that entire group, saving processor time and memory.

Group>>>>Jetpack>>> If player.value(hasjetpack == 1)
Run Jetpack Events

This would allow construct to completely ignore these events until they are needed, instead of skimming through them one by one, determining if they are active for 10+ events it can just check once.

Not sure about the ins and outs of construct, but that was an idea I had.

Seems logical to me...
Posts: 46
Reputation: 942

Post » Fri Apr 16, 2010 9:41 am

Construct already does this. If a group is inactive, the events are not even looked at. If an event has 20 subevents and a condition in the parent event is false, none of the 20 subevents are even looked at.
Scirra Founder
Posts: 22,832
Reputation: 176,700

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 6 guests