Page 1 of 1

Running an applet

Posted: Fri Sep 06, 2024 9:18 am
by GMKai
Are there any differences for the plattforms that are supported by Hollywood.

I have written and published this applet:

http://aminet.net/search?query=rapatank

I have a user reporting a difference of speed changed by the screendepth 8/24 bit.

The Apllet does open a GUI defined by RapaGUI.
The needed plugins are in place.

Is there something I can check or require, to have the best user-expirience possible?

Re: Running an applet

Posted: Fri Sep 06, 2024 10:30 am
by plouf
wow must the first even applet distribution :) everyone prefer numerus exe's :)

except speed, does anything else have diffirence ?
under AmigaOS especially 68k speed matters ... and havign a gfx card (fastest possible) helps a lot
i guess 8 bit is faster ? because less stuff consume cpu power ?

and how slow it is ?

Re: Running an applet

Posted: Tue Sep 10, 2024 7:29 pm
by airsoftsoftwair
This needs more details. Where exactly does it slow down with a different color depth?

Re: Running an applet

Posted: Thu Sep 19, 2024 1:15 pm
by GMKai

Code: Select all

@REQUIRE "hurl"
Function p_Write(data$)
    tr_data$ = tr_data$ .. data$
EndFunction
Function p_Header(data$)
    tr_header$ = tr_header$ .. data$
EndFunction
Function p_doHurlEasyCall(e)
     tr_data$   = ""
     tr_header$ = ""
     e:Perform()
     codep = e:GetInfo_Response_Code()
     e:Close()
     DebugPrint("Done")
     Return(e,codep)
EndFunction  
function p_prepareHurl(url$)
    Local e = hurl.Easy()
    DebugPrint(url$)
    e:SetOpt_URL(url$)
    e:SetOpt_Default_Protocol("https")
    e:SetOpt_HTTPGet(1)
    e:SetOpt_WriteFunction(p_Write)
    e:SetOpt_HeaderFunction(p_Header)
    e:SetOpt_Verbose(0)
    e:SetOpt_FollowLocation(True)
    DebugPrint("Do")
    e,codep = p_doHurlEasyCall(e)
EndFunction


Local url$= "https://image.maps.ls.hereapi.com/mia/1.6/routing?apiKey=l9xuebTMq6w351QYZjJimiOOZfa0wkvNK_BBDg0k_70&i&waypoint0=52.51605,13.37691&waypoint1=52.55887,13.37058&lc=1652B4&lw=6&t=0&ppi=320&w=480&h=640"
StartTimer(1)
p_prepareHurl(url$)
Local t = GetTimer(1)
Print(t)
DebugPrint(t)
url$= "https://router.hereapi.com/v8/routes?lang=de-DE&transportMode=car&apiKey=l9xuebTMq6w351QYZjJimiOOZfa0wkvNK_BBDg0k_70&i&origin=52.51605,13.37691&destination=52.55887,13.37058&return=polyline,actions,instructions"
ResetTimer(1)
p_prepareHurl(url$)
Local t = GetTimer(1)
Print("\n".. t)
DebugPrint(t)
url$="https://creativecommons.tankerkoenig.de/json/list.php?lat=51.86206&lng=7.50303&rad=7&sort=price&type=e5&apikey=87b3086c-265e-ef78-2fdd-b86f1943b66a"
ResetTimer(1)
p_prepareHurl(url$)
Local t = GetTimer(1)
Print("\n" ..t)
DebugPrint(t)
WaitLeftMouse()


This was an attempt to check if the tester has a "network-problem", reported was a difference to run the above on screens of 8 or 24 depth
on A1200 with Pistorm

Re: Running an applet

Posted: Sat Sep 21, 2024 6:24 pm
by airsoftsoftwair
GMKai wrote: Thu Sep 19, 2024 1:15 pm This was an attempt to check if the tester has a "network-problem", reported was a difference to run the above on screens of 8 or 24 depth
on A1200 with Pistorm
How significant is the difference? What timer values are returned on 8 bit screens and what values are returned on 24 bit screens?

Re: Running an applet

Posted: Mon Sep 30, 2024 8:47 am
by GMKai
sorry for the hassle,
it seems to work "now".

prior reports were about the timer to go up several seconds, for os3/8bit

while morphos/24 bit gives timers of <1s