Merge change 24968 into eclair
* changes: Minor perf tweak for fountain.
This commit is contained in:
@@ -20,20 +20,21 @@ int main(int launchID) {
|
|||||||
char r = Control->r * 255.f;
|
char r = Control->r * 255.f;
|
||||||
char g = Control->g * 255.f;
|
char g = Control->g * 255.f;
|
||||||
char b = Control->b * 255.f;
|
char b = Control->b * 255.f;
|
||||||
char a = 0xf0;
|
struct point_s * np = &p[newPart];
|
||||||
|
|
||||||
while (rate--) {
|
while (rate--) {
|
||||||
vec2Rand((float *)(p + newPart), rMax);
|
vec2Rand((float *)np, rMax);
|
||||||
p[newPart].x = x;
|
np->x = x;
|
||||||
p[newPart].y = y;
|
np->y = y;
|
||||||
p[newPart].r = r;
|
np->r = r;
|
||||||
p[newPart].g = g;
|
np->g = g;
|
||||||
p[newPart].b = b;
|
np->b = b;
|
||||||
p[newPart].a = a;
|
np->a = 0xf0;
|
||||||
newPart++;
|
newPart++;
|
||||||
if (newPart >= count) {
|
if (newPart >= count) {
|
||||||
newPart = 0;
|
newPart = 0;
|
||||||
}
|
}
|
||||||
|
np++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user