> > No, it makes no sense at all. Ofcourse you should draw everywhere on
> > the visual.

> Can you explain it as detailed as you can, please? Only drawing the spans,
> which are really visible on the monitor _can_ (but doesn't have to, if
> vis->visible.y == vis->virt.y) be much faster.

You two are looking at the thing from different perspectives.

Marcus is looking at it from a "slow application" perspective, where you
might want to render on a lager virtual screen and pan around.

You are looking at it from the "fast application" perspective, that will
redraw the current visible region in a snap. In that case, you can just
always clip to the current visible region (though you got to the care
to properly offset the drawing commands to your your shortened array),
as if someone moves around the viewport, it will "instantly" redraw and 
thus you don't see a difference to the case where the whole screen was
drawn.

However I'd rather handle that using a full length array and clipping to
e.g. visible coordinates (or something else) when populating it or later.
At worst we are talking about around 4k of memory ...

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]> =

Reply via email to