On Fr, Jan 16, 2015, Jorge Arellano Cid wrote:
> On Fri, Jan 16, 2015 at 08:50:13AM +0100, Johannes Hofmann wrote:
> > Hi,
> >
> > attached is a patch that would enable resolution independent
> > handling of px as described in [1].
> > It would result in roughly equally sized images on high and low
> > resolution devices at the cost of a higher overhead for additional
> > image scaling.
>
> A long time ago, image scaling was relatively low overhead,
> but since dillo got correct gamma correction, it became much
> more expensive.
It is not so much gamma correction, but some improvements before. BTW:
if you look at dw/fltkimgbuf.cc, you see that the old fast code is
still available, by setting scaleMode to SIMPLE. Perhaps this should
be configurable (should be simple), or depending on estimated CPU
performance.
If you run dillo (3.1-dev, not 3.0.4.1) with the attached page, change
the window width, and compare the results with Firefox, you'll notice
that Firefox responds a bit faster. I'm not sure whether Firefox
scales faster, but in other circumstances I've noticed that Firefox
seems to apply two scaling algorithms: one simple but fast one, with
higher priority, and a better but slower one, which is applied with
lower priority.
Sebastian