Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frag Superanal Cleanup #4803

Merged
merged 3 commits into from
Feb 10, 2017
Merged

Frag Superanal Cleanup #4803

merged 3 commits into from
Feb 10, 2017

Conversation

654wak654
Copy link
Contributor

When merged this pull request will:

MUL(_cubic,(abs ((_boundingBox select 0) select _i)) + ((_boundingBox select 1) select _i));
};

if (_cubic <= 1) exitWith {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the best design, but it works since it's nested in a then block and not the forEach block.

private _cubic = 1;
for "_i" from 0 to 2 do {
MUL(_cubic,(abs ((_boundingBox select 0) select _i)) + ((_boundingBox select 1) select _i));
};
Copy link
Contributor

@commy2 commy2 Jan 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pretty ugly. Should write the line 3 times like before and not do a for loop with constant from-to's.

@commy2
Copy link
Contributor

commy2 commented Jan 4, 2017

I like this, because it has perf improvements and frags needs them badly.

@jonpas jonpas added kind/cleanup Release Notes: **CHANGED:** kind/optimization Release Notes: **IMPROVED:** labels Jan 4, 2017
@jonpas jonpas added this to the 3.9.0 milestone Jan 4, 2017
@PabstMirror PabstMirror modified the milestones: 3.9.1, 3.9.0 Feb 10, 2017
@PabstMirror PabstMirror merged commit d2ee1e9 into acemod:master Feb 10, 2017
@jonpas jonpas mentioned this pull request Feb 11, 2017
@654wak654 654wak654 deleted the frag-superanal-cleanup branch February 13, 2017 12:29
thojkooi pushed a commit that referenced this pull request Mar 13, 2017
* Minimal frag cleanup

* Why did this even happen in the first place

Conflicts:
	addons/frag/functions/fnc_frago.sqf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:** kind/optimization Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants