mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 17:31:08 +00:00
Tiny bit of loop unrolling.
This commit is contained in:
parent
6caf86f342
commit
997f5feabe
1 changed files with 6 additions and 2 deletions
|
@ -351,7 +351,9 @@ R_BuildLightMap_3 (msurface_t *surf)
|
|||
scale = d_lightstylevalue[surf->styles[maps]];
|
||||
surf->cached_light[maps] = scale; // 8.8 fraction
|
||||
bl = blocklights;
|
||||
for (i = 0; i < size; i++) {
|
||||
for (i = 0; i < smax * tmax; i++) {
|
||||
*bl++ += *lightmap++ * scale;
|
||||
*bl++ += *lightmap++ * scale;
|
||||
*bl++ += *lightmap++ * scale;
|
||||
}
|
||||
}
|
||||
|
@ -442,7 +444,9 @@ R_BuildLightMap_4 (msurface_t *surf)
|
|||
scale = d_lightstylevalue[surf->styles[maps]];
|
||||
surf->cached_light[maps] = scale; // 8.8 fraction
|
||||
bl = blocklights;
|
||||
for (i = 0; i < size; i++) {
|
||||
for (i = 0; i < smax * tmax; i++) {
|
||||
*bl++ += *lightmap++ * scale;
|
||||
*bl++ += *lightmap++ * scale;
|
||||
*bl++ += *lightmap++ * scale;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue