Hello
> In article <[email protected]>,
> Bernd Roesch <[email protected]> wrote:
>> Hello
>
>> On many youtube sites netsurf use lots of ram to display the site.
>
> In current development builds, content caching is totally broken, so we
> keep multiple copies of the same thing in memory.
Is it possible to switch off the cache complete for testing ?.
I do in option file this, but no diffrence.
memory_cache_size:0
only users with 50 MHZ CPU have 128 megabyte ram limit.
but on a 50 MHZ CPU page display is slow and maybe load all again over fast
DSL
is faster as search in cache here.so i think its usefull if can test.
The SDL Version scroll also on this systems fast, when in libnsfb plotters.c
the scroll is done with sdl instead of memmove (i add this test code) and
use SDL_HWSURFACE, then the GFX Card blitter do the scroll.
static bool copy(nsfb_t *nsfb, int srcx, int srcy, int width, int height,
int dstx, int dsty)
{
+ SDL_Rect src;
+ SDL_Rect dst;
+ SDL_Surface *sdl_screen = nsfb->frontend_priv;
+ src.x=srcx;
+ src.y=srcy;
+ src.w=width;
+ src.h=height;
+ dst.x=dstx;
+ dst.y=dsty;
+ dst.w=width;
+ dst.h=height;
+ SDL_BlitSurface(sdl_screen, &src, sdl_screen , &dst);
+ return true;
uint8_t *srcptr = (nsfb->ptr +
(srcy * nsfb->linelen) +
((srcx * nsfb->bpp) / 8));
uint8_t *dstptr = (nsfb->ptr +
(dsty * nsfb->linelen) +
((dstx * nsfb->bpp) / 8));
int hloop;
if (width == nsfb->width) {
/* take shortcut and use memmove */
memmove(dstptr, srcptr, (width * height * nsfb->bpp) / 8);
} else {
if (srcy > dsty) {
for (hloop = height; hloop > 0; hloop--) {
memmove(dstptr, srcptr, (width * nsfb->bpp) / 8);
srcptr += nsfb->linelen;
dstptr += nsfb->linelen;
}
} else {
srcptr += height * nsfb->linelen;
dstptr += height * nsfb->linelen;
for (hloop = height; hloop > 0; hloop--) {
srcptr -= nsfb->linelen;
dstptr -= nsfb->linelen;
memmove(dstptr, srcptr, (width * nsfb->bpp) / 8);
}
}
}
return true;
}
>
> NetSurf 2.1 is OK, if you can't wait for this to be fixed in the
> development builds. As for when it will be fixed, it will happen when a
> developer who knows what they're doing has enough time.
>
> Michael
>
Regards