Re: [AD] Precalculating 1/h in the polygon rasterizers |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Looking at the code, it seems there are quite a few divisions by h, and
> these could be precalculated. However, since I use the fixed point
> versions, I'm wondering if this would introduce too large an imprecision.
> My polys are medium sized, and roughly facing the camera, so that's not a
> really good testcase. Maybe this was tried before, and it looked bad, so
> that's why there are so many divs here ? Or merely nobody's thought doing
> it worthwhile ?
Unfortunately I don't know the first thing about this code, so I only can be
of limited help here. Do you think sort of a caching mechanism could speed
up the rasterization ?
--
Eric Botcazou