Welcome, Guest. Please login or register.

Author Topic: Netsurf V3.0 Amiga release 2  (Read 30529 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« on: November 18, 2009, 04:46:20 PM »
>but what concerns youtube and other pages holding streaming content netsurf is eating >up my whole ram on a4k while it doesnt show even much of the page, what would >execuse it. might it be it already tries to load some complete stream into the ram before >displaying it?

i look now at ram usage more.I have 256 megaybte of ram but when i go to youtube video page i have then only 70 megabytes free.i test some pages i fint in the mainpage currently and this page eats lots mem

http://www.youtube.com/watch?v=TH8P93HdJbo&feature=popular    

I have no idea whats problem, can you look if OS4 Version do the same, i guess its a netsurf general problem.
« Last Edit: November 18, 2009, 04:51:57 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #1 on: November 19, 2009, 11:30:42 AM »
with the youtube pages need lots mem problem, i suggest that not run out of mem the whole amiga system to enable in ixprefs program "watch available mem" and "catch failed allocations"

then when there is less than 2 megabyte free a ixemul program show a requester that you run low on mem.You can thentry to free memory from other tasks and try again.

Its recommend to do this for all tasks but If you dont want it for all tasks you can then add a task in the blacklist
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #2 on: November 20, 2009, 12:25:19 PM »
>Slightly off topic, but can anyone explain this icon weirdness? I've also encountered other >issues, for example, using the installer to update afa... when the (Ken's) icons are >installed in prefs/, all other icon data in the drawer becomes b0rked and changes to >drawers. :/

powericons is bad written, it do some icon information not store complete that are need for dopus magellan 2.

thats the powericon compatible code, it seem broken in AROS.I see no reason to fix it, OS4 and scalos AFA support a way to show all bits.but powericon store only 4 bits in a mixed way of the 32 bit dd_Flags entrie and the 16 bit dd_Viewmodes entrie ofd the doubject->drawerdata structure

    ATTR_DRAWERFLAGS: AAABC

     C  : 1-bit flag  : 0 = showonlyicons 1 = showallfiles
     B  : 1-bit flag  : 0 = viewastext    1 = view as icons
     AA : 2-bit value : 0 = viewbyname, 1 = viewbydata, 2 = viewbysize, 3 = viewbytype
*/


thats AROS code.


static ULONG flags_to_ddflags(ULONG flags)
{
    ULONG ret = 0;

    if (flags & 1)
    {
       ret = DDFLAGS_SHOWALL;
    }
    else
    {
       ret = DDFLAGS_SHOWICONS;
    }

    return ret;
}

static ULONG flags_to_ddviewmodes(ULONG flags)
{
    ULONG ret = 0;

    if (flags & 2)
    {
       ret = DDVM_BYICON;
    }
    else
    {
       ret = (flags >> 2) + DDVM_BYNAME;
    }

    return ret;
}

static ULONG dd_to_flags(struct DiskObject *dobj)
{
    ULONG drawerflags = 0;

    if (dobj->do_DrawerData->dd_Flags & DDFLAGS_SHOWALL)
    {
   drawerflags |= 1;
    }

    if (dobj->do_DrawerData->dd_ViewModes == DDVM_BYICON)
    {
   drawerflags |= 2;
    }
    else
    {
   drawerflags |= ((dobj->do_DrawerData->dd_ViewModes - 2) << 2);
    }

    return drawerflags;
}

>I've tried it on my a4000d with Cyberstorm mkII, 76 mb ram and PIV, and loading >amiga.org takes quite a long time. I didn't measure the time, but I think it almost takes a >minute before the whole page is loaded.

I try without JIT and really the page load is 4* slower as aweb.aweb show page not complete because of missing CSS, but aweb show many, so its maybe a good compare to see whats so slow in netsurf.also intresting how can switch css off in netsurf, what happen with speed then.

Maybe you can post values of OWB to show that page
« Last Edit: November 20, 2009, 12:38:11 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #3 on: November 21, 2009, 05:18:57 PM »
>It is made so you can browse other sites already. ffplay is run like other process.
>Click on browser window to focus. Hope that helps!

I change newest SDL so it use at default this way:
A sdl program with active window use normal pri (0).when the SDL window is deactivate then taskpri is change to -1.so your amiga can run at full speed wtih other programs, because SDL programs are most bad written and slow down whole system when a program run.

netsurf is compile with newest sdl.
But ffplay can release too with the new sdl.so when deactivate ffplay window other programs that run at pri 0 get more cpu time

but all tasks that are above 0 are not change in pri.so sound in ffplay have always priority>0.same is with the picture and network thread.only the main task, that read and decode ahead video data run at pri-1.

And if your system is slow and need play lots audio, then you have no good performance.

best is for classic use 3gp videos in grayscale play.

the behavior of SDL can switch off if you really notice problems with env var
env:SDL_NOLOWERTASKPRI

to get more better and more configurable task sheduler and responsnes of AOS, try out

http://aminet.net/package/util/misc/Executive
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #4 on: November 24, 2009, 12:42:15 PM »
Because netsurf have many settings to speedup and get best performance depend on the CPU its also important to tweak the settings for slow systems

The default settings are very bad for a classis system.Default is this and it work good on a fast system.SO when you use a UAE on a 1 GHZ X86 this values are ok.maybe on SAM help tweak here too, but a aone/Peg should also with default values fast enough.

file is in resources/options.
Thats default of netsurf 68k

incremental_reflow:1
min_reflow_period:25
max_fetchers:24
max_fetchers_per_host:5
max_cached_fetch_handles:6

but when i disable JIT then its only possible to scroll when page is full load.

Important seem reduce the number of max_fetchers(mean how many data requests are send at once)this reduce the internet latency because there need not wait until the data is load for each image.

But for the classic its too much.I try below values and set all to 4.
also i increase the min_reflow_period to 500.this mean the page is not so often update.

But you should tweak yourself and put here the best values you get

with below values i get on winaue without jit enabled ( get 33 Mips and 23 mflops on sysspeed cpu/fpu Test)

when the page show correct layout(happen very soon on netsurf) but load some missing images, i get a scroll speed of 2-3 fps /sec now

incremental_reflow:1
min_reflow_period:500
max_fetchers:4
max_fetchers_per_host:4
max_cached_fetch_handles:4

please try out on your classic and post values so you reach better performance.
the complete page load is not important only important is that the page is show as soon as possible in correct layout and you can scroll or click on links

try also
incremental_reflow:0

but i see here no diffrence

also try out if with disabled antialiasing in netsurf more fps/sec on scroll can reach.usre text cant read then, but only to know if disable AA give a noticable speed increase
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #5 on: November 25, 2009, 02:34:58 PM »
>Found the problem with OWB 1.6: I had to disable AFA and use ixemul.library 48.x.

ah yes i download it and test from that link.
get the errors messages too when start from shell.
ixemul V48 or better need or exec V45 need.He does add checks so it dont work.but its possible to remove this checks and all work ok i think.

AFA and ixemul is fully compatible to older Versions.

that OWB can work well with newer ixemul and AFA you can see, when you try out OWB 1.2 OWB1.3 or OWB 1.4.all work ok.1.5 i not test.

I dont rememeber was there a news message about 1.6 OWB
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #6 on: November 25, 2009, 05:15:55 PM »
>Well OWB 1.3 indeed works fine with the new ixemul and AFA, but the speed was horrible >on my real amiga,

speed is also horribly slow on winuae.
the readme of OWB 1.6/1.5 does not contain any text about more speed.

As far known Jörg have tell before 1.6 and 1.5 release, that he not want furtherdevelop OWB 68k.

The OWB 68k Port is so outdate and very few is new in 1.5 and 1.6, and the last few updates are really no reason that its not possible to work on AFA and newest ixemul.



History:
1.6 (23.5.2009)
- Relinked with OpenSSL 0.9.7m, https: works now.
- Delayed rendering while data is transferred can be disabled by setting
  the OWB_NODELAY variable now, for example use 'set OWB_NODELAY 1' in a
  shell before starting OWB from it. It's only usable that way if you
  have a *very* fast system.

1.5 (24.2.2009)
- Added GETTITLE and GETURL ARexx commands.
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #7 on: November 27, 2009, 02:25:35 PM »
Quote from: Tumbleweed;531484
incremental_reflow:1
min_reflow_period:500
max_fetchers:4
max_fetchers_per_host:4
max_cached_fetch_handles:4

please try out on your classic and post values so you reach better performance.
the complete page load is not important only important is that the page is show as soon as possible in correct layout and you can scroll or click on links

I have tried these values (A4000D as per signature) but for me their appears to be only a minor improvement. Page renders 2-3 seconds faster.

Weed


The main reason for this settings is that you can scroll in a page before it is full load.the full load time is normaly not much faster.

for example:

with old settings when i want show http://www.amiga.oth without JIT and load it, than  press reload page button and keep and hold cursor down button, the page is scroll after 53 sec.

with the new settings i can scroll the page after 18 sec.
but the page is too only full load after 50 sec.

but after 18 sec you can scroll and press a link and you need not wait until full page is load.
so in praxis you get a speedup of 3*

does the classic not sooner scroll with that settings ?

next netsurf also have faster scroll, because netsurf use CPU and memmove to scroll data on GFX Card.thats slow on Amiga.Use SDL_BlitSurface is lots faster
« Last Edit: November 27, 2009, 02:33:39 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #8 on: November 27, 2009, 02:54:31 PM »
@0amigan0

>Here's a MUI programming tutorial (http://www.ezcyberspace.com/gcc/index.html ), in >case you or Artur aren't particularly experienced in MUI.

change of GUI is lots work, and if its not sure when netsurf get Java Script and frames, i dont want spend much work on it.Because the netsurf devs do not care about MUI or amiga code, they can change at any time something, so the MUI Version fail to work(happen with MOS MUI code).and then there is more time need.

So its better to wait for a nicer GUI until netsurf have all features modern browsers have.

Artur have add to sdl GUI all features a modern browser need, download of files with progress request.show and download videos, bookmarks and hotlink buttons.

only scroll and textinput must enhance and all important can do with it as can do with a nicer GUI
« Last Edit: November 27, 2009, 02:58:51 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #9 on: November 27, 2009, 04:59:57 PM »
>Can u at least, add some sort of contextual menu? I want for example right-click on a link >and run an arexx script.

context menu seem in netsurf core in, and need not support from the AOS GUI.
, but i dont know how this activate in SDL.

In desktop/browser.c file is this that should over a link open a menu.But when press right mousebutton do same as left mouse button.starting a arexx script is a selden need feature i see not on windows or linux browsers.Does that work on OS4 or MOS browsers?

More usefull to have context menus is to save a image to disk.or start a new netsurf that show the page in another window.

case GADGET_SELECT:
         status = messages_get("FormSelect");
         pointer = GUI_POINTER_MENU;
         if (mouse & BROWSER_MOUSE_CLICK_1 &&
               option_core_select_menu) {
            bw->visible_select_menu = gadget;
            form_open_select_menu(bw, gadget,
                  browser_select_menu_callback,
                  bw);
            pointer =  GUI_POINTER_DEFAULT;
         } else if (mouse & BROWSER_MOUSE_CLICK_1)
            gui_create_form_select_menu(bw, gadget);
         break;

I think a context menu is not need, better use the F keys or show key shortcuts that can press when mouse is over a link.

>With new options: amiga.org displays the page after 20 sec, but full page load takes 39 >secs. Also tried 2 times with a freshly started system. Both times it takes about 39 sec.

does then after 20 sec click on a new link or scrolling of page work ?

there need selden wait until page is full load.most time when page is show then user click or scroll and dont wait until page is full load

>It takes so much time to load on a real amiga... is this because it loads slowly, or it takes >its time to render?

it takes time to render, the GFX Action cost not much time.netsurf render all in ram, and the part thats show is copy to GFX Card.

and when you see nothing, then netsurf or any other browser load or renders the page in RAM.

to display a page so a user can see it, is graphic action but it need not more than 0,3 sec also on a slow real amiga
« Last Edit: November 27, 2009, 05:20:50 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #10 on: November 27, 2009, 05:17:33 PM »
>With new options: amiga.org displays the page after 5 sec, but full page load takes 15 >sec. Also tried 2 times with a freshly started system. Both times it takes about 15 sec.

What DSL and winuae System (CPU)you have ?

On my system display page after 3-3,5 sec and full page is show after 10 sec.but after 3,5 sec i can scroll page with more than 20 fps or click on a link
« Last Edit: November 27, 2009, 05:20:00 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #11 on: November 28, 2009, 11:13:02 AM »
About the speed, i ask about the 150 megabyte problem for a page.They say that the cache in netsurf currently not work, and all is load more often than need, so in future we can hope for much more speed and mem usage.

http://vlists.pepperfish.net/pipermail/netsurf-dev-netsurf-browser.org/2009-November/001649.html

I suggest to switch off the cache, but it currently not work to switch it off.

To avoid speedloss you can then use a cache proxy on AOS.but you need to set taskpri to 1 of this so it have better priotity as netsurf.

maybe somebody try out netsurf with cache proxy if its faster on classic.
this a Ex Amiga User and network expert dev i know use long time on his classic and it work well and fast on his classic  

http://aminet.net/package/comm/tcp/httpproxy-0_14

but there are also other cache proxiy on aminet maybe there are better one now

>This is on a Pentium 4 3 Ghz system with 1.5 GB RAM.

>DSL is a 8 Mbit connection.

I have only DSL 3 MBit(more not possible)  and a AMD64 3000+ with real 1,8 GHZ.the 3000+ mean your systems should be equal speed.

seem your winuae JIT settings are not good.

Here you can see a old screenshot how the settings should be for JIT.

http://www.pcguru.plus.com/uaegfx/cpu.gif

For the sound you should enable automatic switching.

if this not make your winuae faster, you can also send me your winuae config.
« Last Edit: November 28, 2009, 11:43:27 AM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #12 on: November 28, 2009, 04:51:02 PM »
Do you get messages "Base stylesheet failed to load" and nothing can see ?

I get a report from a user that say this he get problems on winuae on his office proxy, he get this error on most sites.
But http://netsurf-browser.org

and many links on it work.

Is this on your system the same ?
If so, then its maybe a netsurf Problem in proxy Mode
« Last Edit: November 28, 2009, 04:53:10 PM by bernd_afa »
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #13 on: November 29, 2009, 08:35:32 AM »
If ibrowse speedup then netsurf should too.

Problem in netsurf is, it is written as a single thread application, this mean it fires out the Internet requests and poll for answers.So when another task run at priority 0, the other task must wait.

to check if this is the problem, start the load of a page and deactivate the netsurf window.netsurf should then get taskpri -1.

then always when netsurf fire a internet request http proxy should start immidiatly to send the data, because httpproxy have then a higher taskpri.

to see if netsurf really get taskpri -1 look in scout taskwindow.

maybe you can write the steps you do to get httpproxy working.
 

Offline unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Netsurf V3.0 Amiga release 2
« Reply #14 on: November 30, 2009, 11:20:00 AM »
Artur have upload new netsurf.it scroll faster now, get report from a Zorro 2 GFX Card User scroll work same speed as AWEB

http://aminet.net/package/comm/www/NetSurf-68k

hope now scroll work as soon the Page is show.

I test with disabled JIT and now this option value can set to 200.mean the page is redraw every 2 sec,when not all is load complete.

min_reflow_period:200    

and scroll work with 3-5 fps during page load.Is this on classic too ?

if not maybe reduce the fethers.here is setting for slow systems

max_fetchers:4
max_fetchers_per_host:5
max_cached_fetch_handles:6