Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Retrofan

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 507
    • Show only replies by Retrofan
Re: We need an iBrowse replacement for 68k!!!
« Reply #389 from previous page: February 02, 2015, 02:17:54 PM »
Great work. I've always wanted NetSurf to work without Ixemul so no FPU amigas with 030´s (ACA) have a chance to use it.
A1200, Lateral 32GB CF, internal Dvd, ACA 1230/56 with an MKII Fast ATA at 9,5Mb/s, another A1200 BPPC project in progress (more or less), and posting from my own/better C64x in my Tv using Hdmi.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #390 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #391 on: February 02, 2015, 07:51:15 PM »
Quote from: chris;782853
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!)


No improvement in the visuals. It still looks like this:

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

It seems a little bit faster but nowhere close to Arti's NetSurf SDL builds yet.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #392 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #393 on: February 02, 2015, 09:24:01 PM »
Quote from: chris;782859
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.


Something is messed up with the P96 visuals:

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

Quote from: chris;782859

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.


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 :).
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #394 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #395 on: February 02, 2015, 11:20:55 PM »
Quote from: chris;782871
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)


What log? The -v stderror? I have selected 800x600x32 BGRA (little endian) every time it has asked. I tried mask_alpha:0 in Choices with the lastest build but it didn't help. NetSurf does create a new user in Users with my name rather than "user" now.

Quote from: chris;782871

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?)


Yes, chip mem should be used when fast memory runs out. It might keep you going but there is a big hit in speed when using chip mem instead of fast mem. What TCP/IP stack are you using? The selection of stack can make a significant difference in memory usage. If NetSurf would work without a stack online, you could load html from your hard drive for testing saving a significant amout of memory.

Quote from: chris;782871

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.


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.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #396 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #397 on: February 03, 2015, 01:12:59 AM »
Quote from: chris;782877
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.

Using the old build I get "amiga/plotters.c ami_init_layers 102: Screen depth = 24"

Edit: The new version is no better than the version before it.

Quote from: chris;782877
Somewhere along the line you've set or changed the USER env-var.

It was probably as part of one of my scripts I use before programming, So NetSurf is multi-user on the Amiga ;).

Quote from: chris;782877
MiamiDx, which is probably not the best at memory conservation, given it uses MUI.

Miami has a Reaction GUI option (I don't recall MiamDx getting one) which would share many of the Reaction GUI resources such as libraries, gadgets and images saving memory. I use the AmigaOS 3.9 version of Genesis which also uses Reaction. Roadshow may use the least amount of memory having no GUI.

Quote from: chris;782877
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)

Bummer. Being able to work offline is a nice feature,
« Last Edit: February 03, 2015, 01:23:04 AM by matthey »
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #398 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 #399 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #400 on: February 03, 2015, 07:53:37 PM »
Quote from: chris;782905
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.


Nope. I can't see any difference from the last build.
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: We need an iBrowse replacement for 68k!!!
« Reply #401 on: February 03, 2015, 10:04:14 PM »
Quote from: chris;782905
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.


Hi Chris

IIRC P96 built in emulated CGX WritePixelArray worked quite nicely performing RGBA to CLUT conversions. As strange as it may sound perhaps you should use CGX functions, because P96 doesn't have public functions to do some stuff available in its CGX emulation. Doing the same with the native P96 functions was trickier.

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.

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.

You can easily detect if current screenmode is cgx or not.
  if (CyberGfxBase != NULL)
    if (IsCyberModeID(resultadoalloccgx.DisplayID))
      {
      printf("screenmode is CGX\n");
      } else {
      printf("screenmode is something else\n");
      }

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).
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #402 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 NovaCoder

Re: We need an iBrowse replacement for 68k!!!
« Reply #403 on: February 03, 2015, 11:27:49 PM »
Sorry to be dumb, but where to you download the latest build and the source code?

Thanks :)
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #404 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