Re: Polygon Rendering Speed
- From: "wxforecaster" <wxforecaster@xxxxxxxxx>
- Date: Sun, 25 Mar 2007 19:12:25 -0500
Olaf,
An interesting proposition, but the polygons are not necessarily regular. If
indeed filling the RGB array of a DIB section is faster, I'm not sure on the
math required to locate all the pixels in such an array when I only know the
4 points (which are essentially arbitrary).
Evan
...Data consists of 4 sided polygons, of which a single bitmap...on the other side - the size of your Polygons seems very small
could contain around 140,000 polygons that average about
2x2 pixels in size.
with only 2x2Pixels on average - I mean these are only 4 Pixels
to set.
Why not work on a DIBSection-mapped VB-Array and set
the Color-Values of those ca. 4 pixels in the Array directly
(at least for all the smaller Polygons)?
This could speed up your Polygon-Rendering by Factor 10 or so.
Olaf
.
- Follow-Ups:
- Re: Polygon Rendering Speed
- From: Schmidt
- Re: Polygon Rendering Speed
- From: Schmidt
- Re: Polygon Rendering Speed
- References:
- Polygon Rendering Speed
- From: wxforecaster
- Re: Polygon Rendering Speed
- From: Schmidt
- Polygon Rendering Speed
- Prev by Date: Re: Polygon Rendering Speed
- Next by Date: Re: Polygon Rendering Speed
- Previous by thread: Re: Polygon Rendering Speed
- Next by thread: Re: Polygon Rendering Speed
- Index(es):
Relevant Pages
|