Welcome, Guest. Please login or register.

Author Topic: duktape error NetSurf OS3  (Read 33086 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline chris

Re: duktape error NetSurf OS3
« Reply #104 on: July 23, 2016, 01:48:14 AM »
Quote from: utri007;811491
Netsurf requires 8bit screen, so AGA is minium?

Actually it shouldn't care, run it on a 1-bit screen if you like.

Quote from: DNADNL;811496
Actually, my screen was setup like this (that was possible thanks to Picasso96) : UAE: 800x600 32bit RGBA. I don't know if it answers the question... I tried with a setup like UAE: 800x600 8bit, but it does the same for the pictures.

a) ARGB is preferred/expected. It shouldn't matter, but it might.
b) friend_bitmap:1 forces NetSurf's rendering bitmaps into the same format as the screen. If you're running 32-bit this will happen anyway.
c) Images are quantised using guigfx, you might want to try out the demos to see if they work as expected.
d) Depending on what you've done with your config, you might find NetSurf opens its own screen and isn't in the format you think it is.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline DNADNL

  • Jr. Member
  • **
  • Join Date: Jun 2016
  • Posts: 87
    • Show only replies by DNADNL
Re: duktape error NetSurf OS3
« Reply #105 on: July 25, 2016, 04:06:34 PM »
Quote from: chris;811516
Actually it shouldn't care, run it on a 1-bit screen if you like.



a) ARGB is preferred/expected. It shouldn't matter, but it might.
b) friend_bitmap:1 forces NetSurf's rendering bitmaps into the same format as the screen. If you're running 32-bit this will happen anyway.
c) Images are quantised using guigfx, you might want to try out the demos to see if they work as expected.
d) Depending on what you've done with your config, you might find NetSurf opens its own screen and isn't in the format you think it is.
Hello !

a) OK, I set the screen like this : UAE:1024x768 32bit RGBA (RGBA is the same than ARGB, I suppose); NetSurf is configured to have the same screen resolution.
b) I added this into the "Choices" file, but it doesn't seem to do something (I still have a green or weird picture instead of the one expected
c) I don't know how to do this, I'm going to check this out, but if you have a tutorial link, i would kindly accept it ! ^^
d) Logically, it is configured to have the same definition as the workbench. I checked and that's the case. But the funniest part is that the favicon is quite well displayed ! ^^
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #106 on: July 25, 2016, 04:30:49 PM »
Quote from: DNADNL;811593
a) OK, I set the screen like this : UAE:1024x768 32bit RGBA (RGBA is the same than ARGB, I suppose); NetSurf is configured to have the same screen resolution.

Nope, ARGB and RGBA are different.
ARGB
RGBA

So, alpha pixels will be red, red pixels will be green, green pixels will be blue and blue pixels will be see-through (or not, I can never remember which way round it is)

I don't think NetSurf uses the pixel format directly, but if it does that's what you'll get.

Quote
b) I added this into the "Choices" file, but it doesn't seem to do something

Not unexpected.

Quote
c) I don't know how to do this, I'm going to check this out, but if you have a tutorial link, i would kindly accept it ! ^^

The demos are in the guigfx archive (or maybe the render.lib archive)

Quote
d) Logically, it is configured to have the same definition as the workbench. I checked and that's the case. But the funniest part is that the favicon is quite well displayed ! ^^

The difference is the favicon is plotted direct to the window, whereas the page content goes through an intermediate step.

Try adding direct_render:1 to your Choices. **warning**warning** this might be a **very bad** idea!  I'm not sure it works **at all** and certainly it never worked properly, but it might confirm if the extra step is the problem. **warning**warning**

You can also try fiddling with AMI_BITMAP_FORMAT in bitmap.h.  Maybe it ought to be 0.

Try some different combos and let me know what you get!
« Last Edit: July 25, 2016, 04:47:14 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 utri007

Re: duktape error NetSurf OS3
« Reply #107 on: July 25, 2016, 06:32:49 PM »
Tested this with my 060 / RTG systems, all pictures are displayed as they should be displayed.

So no problems here with Picasso96 / RTG

AGA has some serious problems, but pictures tell more than 1000 words.

Image format is in picture name.

Checked gif, jpg and png
« Last Edit: July 25, 2016, 06:34:50 PM by utri007 »
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #108 on: July 25, 2016, 07:14:29 PM »
Quote from: utri007;811601
AGA has some serious problems, but pictures tell more than 1000 words.


Can you try direct_render too?  Above warnings apply.

You might need to set the tile size to be the same as the screen.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline DNADNL

  • Jr. Member
  • **
  • Join Date: Jun 2016
  • Posts: 87
    • Show only replies by DNADNL
Re: duktape error NetSurf OS3
« Reply #109 on: July 25, 2016, 07:20:58 PM »
Quote from: chris;811595
Nope, ARGB and RGBA are different.
ARGB
RGBA

So, alpha pixels will be red, red pixels will be green, green pixels will be blue and blue pixels will be see-through (or not, I can never remember which way round it is)

I don't think NetSurf uses the pixel format directly, but if it does that's what you'll get.


Oh, I didn't know, thanks for this information !
I looked for ARGB, and I didn't find any resolution or any way to select it on Happiga for Raspberry Pi (I only have 32bits RGBA)

Quote from: chris;811595

The demos are in the guigfx archive (or maybe the render.lib archive)


I can't find them. I tried to launch the files I suspected to contain the demos, but that didn't seem to work an Happiga...



Quote from: chris;811595

The difference is the favicon is plotted direct to the window, whereas the page content goes through an intermediate step.

Try adding direct_render:1 to your Choices. **warning**warning** this might be a **very bad** idea!  I'm not sure it works **at all** and certainly it never worked properly, but it might confirm if the extra step is the problem. **warning**warning**

Ok, I tried and... that does nothing ! ^^ The same problem, so it should mean it doesn't come from the guigfx/render lib... ?

Quote from: chris;811595

You can also try fiddling with AMI_BITMAP_FORMAT in bitmap.h.  Maybe it ought to be 0.

I can see AMI_BITMAP_FORMAT is RGBFB_R8G8B8A8. I'm going to try with 0 and I'll tell you.

Quote from: utri007;811601
Tested this with my 060 / RTG systems, all pictures are displayed as they should be displayed.

So no problems here with Picasso96 / RTG

AGA has some serious problems, but pictures tell more than 1000 words.

Image format is in picture name.

Checked gif, jpg and png

Wow, quite better than me ! ^^
 

Offline utri007

Re: duktape error NetSurf OS3
« Reply #110 on: July 25, 2016, 07:56:41 PM »
Quote from: chris;811604
Can you try direct_render too?  Above warnings apply.

You might need to set the tile size to be the same as the screen.


How do I test direct_render? user/choises direct_render:1 ?

Some stupid questions :

What was page to see current settings?
Where was cache native versions setting?
Is it current build that experimental 68000 build, here : http://cy2.uk/netsurfos3
What was format to set tile size to 640x512?
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline DNADNL

  • Jr. Member
  • **
  • Join Date: Jun 2016
  • Posts: 87
    • Show only replies by DNADNL
Re: duktape error NetSurf OS3
« Reply #111 on: July 25, 2016, 08:24:47 PM »
OK, I just tried NetSurf wit the bitmap.h modification (AMI_BITMAP_FORMAT to 0), and... NetSurf doesn't want to be launched, contrarly to the previous non-modified version.

Quote from: utri007;811607
Is it current build that experimental 68000 build, here : http://cy2.uk/netsurfos3
I can't use this version on Happiga, I suppose it's because it contains DukTape... I use the version I compiled myself via NetScript.
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #112 on: July 25, 2016, 08:45:11 PM »
Quote from: DNADNL;811608
OK, I just tried NetSurf wit the bitmap.h modification (AMI_BITMAP_FORMAT to 0), and... NetSurf doesn't want to be launched, contrarly to the previous non-modified version.


Try toggling the bits, so it reads R8G8B8A8 or whatever.

Quote


I can't use this version on Happiga, I suppose it's because it contains DukTape... I use the version I compiled myself via NetScript.


It's a plain 68000 binary, no Duktape.
"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: duktape error NetSurf OS3
« Reply #113 on: July 25, 2016, 08:49:27 PM »
Quote from: utri007;811607
How do I test direct_render? user/choises direct_render:1 ?


Yes.
Quote

Some stupid questions :

What was page to see current settings?


about:config

Quote

Where was cache native versions setting?


Prefs, Rendering tab.

Quote

Is it current build that experimental 68000 build, here : http://cy2.uk/netsurfos3


Yes.

Quote

What was format to set tile size to 640x512?


tile_size_x:640
tile_size_y:512

I think.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline DNADNL

  • Jr. Member
  • **
  • Join Date: Jun 2016
  • Posts: 87
    • Show only replies by DNADNL
Re: duktape error NetSurf OS3
« Reply #114 on: July 25, 2016, 09:01:47 PM »
Quote from: chris;811612
Try toggling the bits, so it reads R8G8B8A8 or whatever.
What do you mean by toggling ? Do you want I try RGBFB_R0G8B8A8 or RGBA_R8G8B8A8  instead of RGBFB_R8G8B8A8 ?
 

Offline utri007

Re: duktape error NetSurf OS3
« Reply #115 on: July 25, 2016, 09:18:32 PM »
Quote from: DNADNL;811615
What do you mean by toggling ? Do you want I try RGBFB_R0G8B8A8 or RGBA_R8G8B8A8  instead of RGBFB_R8G8B8A8 ?


Does this help?

http://www.w3schools.com/cssref/css_colors_legal.asp
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #116 on: July 25, 2016, 09:36:38 PM »
Quote from: DNADNL;811615
What do you mean by toggling ? Do you want I try RGBFB_R0G8B8A8 or RGBA_R8G8B8A8  instead of RGBFB_R8G8B8A8 ?


Change it so it is ordered RGBA instead of ARGB. Have a look in the Picasso96 headers, but basically you need to move the A8 to the end.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline utri007

Re: duktape error NetSurf OS3
« Reply #117 on: July 25, 2016, 09:57:00 PM »
Direct render causes more problems. tile_size_x:640 and tile_size_y:512 actually makes it feel faster. :)
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #118 on: July 25, 2016, 10:14:50 PM »
Quote from: utri007;811619
Direct render causes more problems.

Yes, I know, that's why I surrounded it with *warning*warning*warning*. It's there for debugging purposes. It proved that the extra bitmap isn't the problem.

Quote
tile_size_x:640 and tile_size_y:512 actually makes it feel faster. :)

Yes, it will do (and probably is) but uses more memory, so the default is smaller tiles.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline utri007

Re: duktape error NetSurf OS3
« Reply #119 from previous page: July 25, 2016, 10:28:27 PM »
I don't know if you have noticed but amigaworld.net looks almost OK

http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=41257&forum=27

Little weird, because there is a problems with those image types.
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD