Welcome, Guest. Please login or register.

Author Topic: We need an iBrowse replacement for 68k!!!  (Read 75740 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #74 on: February 02, 2015, 10:40:47 AM »
Quote from: matthey;782814
The fonts have a grey halo


That's normal for direct_render.  It's the main reason I say it's for debugging only.

Quote

Edit: Oh yea. New build is better at rendering. Without direct_render:1 it looks like this:

http://www.heywheel.com/matthey/Amiga/NetSurf_grab6.png


Much better :) and I think I know why old pages are showing through, will fix later.

Quote

I didn't notice much of a difference in speed. Maybe GCC is stuck in slow mode without -O2. I would have expected the executable size to drop a lot more than that too. Did all the source get recompiled for the 68020?


Yes, although most of the executable is static libraries.  I'll see if I can get -m68020 added for the NetSurf libraries.

@wawrzon

I know exactly what a.org is supposed to look like in NetSurf :)
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #75 on: February 02, 2015, 06:33:05 PM »
New build up.  This should fix the problem with the previous page appearing behind the current one. (edit: although it might blotch it out in the wrong colour depending on when you downloaded!)

If that works I'll enable P96 :)
« Last Edit: February 02, 2015, 06:56:27 PM by chris »
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #76 on: February 02, 2015, 08:34:58 PM »
Quote from: matthey;782857
No improvement in the visuals. It still looks like this:

http://www.heywheel.com/matthey/Amiga/NetSurf_grab6.png


Disappointing.  I've done the P96 updates anyway, so try the one I've just uploaded and see how that works.

I'll have a think about why the page isn't clearing.

I've also had another go on my A1200 and managed to get the main window up.  I think it wasn't working before due to lack of memory, so I might invest in a 32MB SIMM to make it easier for me to test.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #77 on: February 02, 2015, 10:09:26 PM »
Quote from: matthey;782861
Something is messed up with the P96 visuals:

http://www.heywheel.com/matthey/Amiga/NetSurf_grab8.png

Hmm, that can only be to do with how I'm allocating the off screen bitmap, as everything else is the same (except the bitmap code, which is clearly working).

Does the log show your screen as 32 or 24 bit? (depth= somewhere near the top)

Quote
I thought NetSurf was pretty good on memory. I expect it should be usable with 32MB. Maybe you were out of chip mem before. Almost all 2MB of my chip mem is free because I was using RTG. If you were using AGA in a descent resolution and depth with a picture backdrop then you probably ran out of chip memory. You solved the chip mem problem though. NetSurf should easily run on any Amiga with 1 MB of chip mem :).

Chip RAM seems fine - 1.8MB free at the point it crashes (I reduced it to a 4 colour hires screen :)). Only 90K of fast mem though! It plummets from 6 to 1 MB just before the window opens, so unless there's a bug causing it to soak up memory I don't think I can gain enough to make it get any further. That's with simple refresh windows and a small tile size. (edit: hold on, shouldn't it be using chip ram when fast runs out?)

I think the outline fonts are eating a fair bit (as well as being slow), looking at that code it's going to be easier to conditionally compile either for outline or bitmap fonts, rather than trying to support both. I might be able to make it a runtime option. I'll have a play with that when I have more time.
« Last Edit: February 02, 2015, 10:12:23 PM by chris »
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #78 on: February 02, 2015, 11:58:41 PM »
Quote from: matthey;782875
What log? The -v stderror? I have selected 800x600x32 BGRA (little endian) every time it has asked.

Yes, the -v log.  I added something to report the screen depth.  I know you're on 32-bit, but I'd like to know if that knows :) as it could be causing the off-screen bitmap to be set up wrong.

I've put a new build up anyway which might fix it, but if it doesn't I'll need to know what the screen depth is being reported as.

edit: I've just added the bitmap tiler as well, which might solve some other graphical glitches or (more likely) create some new ones.

Quote
NetSurf does create a new user in Users with my name rather than "user" now.

Somewhere along the line you've set or changed the USER env-var.

Quote
What TCP/IP stack are you using? The selection of stack can make a significant difference in memory usage.

MiamiDx, which is probably not the best at memory conservation, given it uses MUI.

Quote
If NetSurf would work without a stack online, you could load html from your hard drive for testing saving a significant amout of memory.

Unfortunately it won't as bsdsocket is loaded by clib2, and there's not much I can do to stop it (and I'm not sure if it would work without it anyway, given there is sockets-related code in the main loop)

Quote
I don't know that the outline fonts are working. My font Choices that you had me configure ended up being changed to:

Code: [Select]
font_cursive:CGTimes

The new user in Users doesn't even have this.

That's because I fixed the defaults slightly different to what I'd posted here.  Anything set as default gets removed from the config file.
« Last Edit: February 03, 2015, 12:34:35 AM by chris »
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #79 on: February 03, 2015, 10:02:18 AM »
Quote from: matthey;782882
Using the old build I get "amiga/plotters.c ami_init_layers 102: Screen depth = 24"


That *should* have been OK.  I think I'll have to change it so it creates a gfx.lib bitmap, given that seemed to work before.

Quote

So NetSurf is multi-user on the Amiga ;).


Sort of, yes.

Quote
Bummer. Being able to work offline is a nice feature,


It will work offline.... provided the TCP/IP stack is running
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #80 on: February 03, 2015, 06:36:33 PM »
OK, try the new build and see if that fixes the colour issues on P96.  If it doesn't I'll go back to Plan A.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #81 on: February 03, 2015, 10:31:47 PM »
Quote from: Crumb;782923

If you are using a 24bit buffer CGX WritePixelArray will help although If I have read correctly you are using datatypes to convert to the screen format.


Only for <= 8-bit screens. Elsewhere I use p96WPA.

Quote

Perhaps you could make use of AWeb sources for dithering and scaling, these should be more or less optimized for 68k, maybe also image decoders. Render.library should also include optimized code for that.


I've seen render library mentioned before, I intend to check it out as I'm well aware using datatypes to do the dithering isn't particularly quick.

Quote

IIRC you could also use CGX LockBitMapTags to discover if the screen's bitmap is clut, rgba and to lock it to draw directly with the cpu (remember to write the bytes/words/longwords in the same screenformat).


I really don't want to do that, I'm using graphics.lib's drawing functions extensively. What I'm missing is a way to set the rastport colour directly like you can on OS4 and MOS, ie without using ObtainBestPen.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #82 on: February 03, 2015, 11:34:05 PM »
Quote from: NovaCoder;782937
Sorry to be dumb, but where to you download the latest build and the source code?


Build: netsurf_os3.lha (you'll need to use XAD to unarchive it)

Source: NetSurf git repo

I've just put a new build up (hopefully this one will work with p96 modes).
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #83 on: February 04, 2015, 12:00:49 AM »
Quote from: matthey;782940
Still no help. It looks the same.


Grr.  I've switched back to non-P96 mode and uploaded that, so at least people can test something they can see.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #84 on: February 04, 2015, 06:32:34 PM »
Quote from: Thorham;782990
On my A1200 with Blizzard 1230IV 64 MB fast Kickstart 3.0

That's your problem, you need OS3.9 (or possibly OS3.5, although I can't confirm it works there yet)

Quote
I'm getting can't open diskfont.library v0 (fatal error).

The version number in the error is wrong (meant to fix that), it requests diskfont v40.  I can't immediately see why I selected that version, but regardless NetSurf will not work on anything less than 3.5.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #85 on: February 04, 2015, 10:54:23 PM »
Quote from: wawrzon;783003
no, afair the message means simply that it cannot open any such library whatever version number.


I assure you, it is trying to open diskfont.library v40. The message is wrong.

Quote
if there is a build to test i could give it a go soon.


See my earlier message. The builds haven't moved (yet).
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #86 on: February 05, 2015, 08:40:45 AM »
Quote from: NovaCoder;783042


Just looking at the code on GIT, is the latest stuff on netsurf.git master or in a branch?


Master.

There's some bitmap font stuff I was playing with in a branch, but I haven't been able to get it working yet.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #87 on: February 05, 2015, 10:11:48 AM »
Quote from: pVC;783068
Sorry to jump in cluelessly, because I haven't read the full thread, but if you're using P96 functions, will it work with CGX setups at all then? Wouldn't it be better to use CGX functions which would work under P96 too and thus get all setups supported? Or is this only meant to be run under emulation (speed wouldn't be enough for anything under real HW)?


The plan is to get it fast enough for real hardware (I can't get a proper idea of speed myself as I can't run it on my A1200 atm).  P96 is only used if it is available - in the OS3 build due to the earlier problems there is currently *no* P96 being used, even on 32-bit screens (it opens the library if available, but that's it!).
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #88 on: February 05, 2015, 02:40:32 PM »
I've added a todo/known issues to the wiki here: http://wiki.netsurf-browser.org/Todo/AmigaOS_frontend#OS3_Support
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #89 from previous page: February 05, 2015, 07:03:45 PM »
Quote from: wawrzon;783030
here under the upper edge you see artifacts, as result of scrolling:


I've put a new build up in an attempt to fix this problem.  It most likely isn't fixed for scrolling, but visiting one page and then another should stop the previous page showing through.  Let me know if it works or not.

The status bar should be in the right place now too.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz