PureBasic 6.01 LTS is released !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: PureBasic 6.01 LTS is released !

Post by Psychophanta »

1ST saying thanks to the final version 6.01 LTS! :)
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.01 LTS is released !

Post by mk-soft »

It's true that there is already a release :wink: , but a little too early. :|

macOS OpenConsole has not worked since the first beta. :cry:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic 6.01 LTS is released !

Post by luis »

mk-soft wrote: Wed Mar 08, 2023 6:20 pm but a little too early. :|
Indeed, from the reports it seems there are still problems with big sources sometimes.
"Have you tried turning it off and on again ?"
A little PureBasic review
hoerbie
Enthusiast
Enthusiast
Posts: 119
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: PureBasic 6.01 LTS is released !

Post by hoerbie »

mk-soft wrote: Wed Mar 08, 2023 6:20 pm but a little too early. :|
The help files are also not fully up to date, the new #PB_Mail_UseSMTPS constant is only mentioned in an example of SendMail() at the english help file, but not above in the parameter list where the other constants are explained, and also the constant is not included in the general constant list. The german help file doesn't show the constant anywhere.
Don't know if there are other changes or new features like this that are not really documented?
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.01 LTS is released !

Post by StarBootics »

I also experience an IMA error on a large source code (28 402 lines) and I can't reproduce it with a small snippet using V6.01 LTS.

I'm investigating this problem and I hope I will find the problem.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: PureBasic 6.01 LTS is released !

Post by Denis »

mk-soft wrote: Wed Mar 08, 2023 6:20 pm It's true that there is already a release :wink: , but a little too early. :|

macOS OpenConsole has not worked since the first beta. :cry:
You are absolutely right.
I still have a bug that prevents a project from compiling, version 6.01 LTS is premature.
It seems that compiling on large projects (in number of lines) causes problems.

StarBootics wrote: Thu Mar 09, 2023 4:17 am I also experience an IMA error on a large source code (28 402 lines) and I can't reproduce it with a small snippet using V6.01 LTS.

I'm investigating this problem and I hope I will find the problem.

Best regards
StarBootics
Bonjour Guillaume,
send your projet to Fred, it is certainly the best way to do it.
A+
Denis
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.01 LTS is released !

Post by StarBootics »

Denis wrote: Thu Mar 09, 2023 5:22 am Bonjour Guillaume,
send your projet to Fred, it is certainly the best way to do it.
I have wrote a private message to Fred with a download link to the source code and support files required (8.5 MB).

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
lgb-this
User
User
Posts: 28
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: PureBasic 6.01 LTS is released !

Post by lgb-this »

I use in my application a lot of ComboBoxGadgets (more than 100) and i detected a significant increase in the time to create the ComboBoxGadgets with the new 6.01.

I wrote a small app to demonstrate this:

Code: Select all

If OpenWindow(0, 0, 0, 320, 200, "Create ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  
  t1 = ElapsedMilliseconds()
  For i = 0 To 1000
    x = ComboBoxGadget(#PB_Any,10,10+i,250,21)
    For j = 0 To 20
      AddGadgetItem(x,-1,"Item " + Str(j))
    Next j
  Next i
  t2 = ElapsedMilliseconds()
  Debug("Time=" + Str(t2-t1))
    
  Repeat
    Select WaitWindowEvent()
      
      Case #PB_Event_CloseWindow
        Quit = 1

    EndSelect    
  Until Quit = 1
EndIf
I made my tests on a Win10 notebook with i7, x64, no code options enabled (no code optimisation, modern theme off, no dpi):
  • 6.00 : time = 5488 ms
  • 6.01 : time = 19952 ms
This is an extrem increase in time. Any idea where this is coming from ?

The code above is only to demonstrate the problem !

Regards Matthias
User avatar
jacdelad
Addict
Addict
Posts: 1431
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: PureBasic 6.01 LTS is released !

Post by jacdelad »

If you are on Windows, try this (independent from what has changed within PureBasic):

Code: Select all

If OpenWindow(0, 0, 0, 320, 200, "Create ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  
  t1 = ElapsedMilliseconds()
  SendMessage_(WindowID(0),#WM_SETREDRAW,0,0)
  For i = 0 To 1000
    x = ComboBoxGadget(#PB_Any,10,10+i,250,21)
    For j = 0 To 20
      AddGadgetItem(x,-1,"Item " + Str(j))
    Next j
  Next i
  SendMessage_(WindowID(0),#WM_SETREDRAW,1,0)
    t2 = ElapsedMilliseconds()
  Debug("Time=" + Str(t2-t1))
    
  Repeat
    Select WaitWindowEvent()
      
      Case #PB_Event_CloseWindow
        Quit = 1

    EndSelect    
  Until Quit = 1
EndIf
And also, don't do speed tests in debugger mode!
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
User avatar
lgb-this
User
User
Posts: 28
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: PureBasic 6.01 LTS is released !

Post by lgb-this »

This adjustment has made the result worse.
  • 6.00 : time=7074ms
  • 6.01 : time=23636ms
User avatar
❤x1
User
User
Posts: 46
Joined: Thu Jan 10, 2019 5:56 pm

Re: PureBasic 6.01 LTS is released !

Post by ❤x1 »

Have you disabled the debugger? I doubt not drawing for each window update would actually slow down the whole process.

Here are my results, averaged over 5 runs :

Code: Select all

Original code :
PB 6.01 ASM					PB 6.01 C					PB 6.00 ASM					PB 6.00 C
15941ms						16365ms						15526ms						16283ms
14259ms						16422ms						15615ms						15516ms
14384ms						16103ms						15689ms						15998ms
14382ms						16941ms						16775ms						15869ms
17605ms						16241ms						16372ms						15757ms
--------					--------					--------					--------
15314ms						16414ms                     15995ms                     15884ms

No redraw :
5828ms						5851ms						7380ms						7609ms
5859ms						5904ms						7240ms						7408ms
5820ms						5904ms						7584ms						7568ms
5853ms						5876ms						7596ms						7662ms
5876ms						5937ms						7563ms						7559ms
-------						-------						-------						-------
5847ms						5894ms						7472ms						7561ms
Last edited by ❤x1 on Thu Mar 09, 2023 6:14 pm, edited 1 time in total.
User avatar
lgb-this
User
User
Posts: 28
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: PureBasic 6.01 LTS is released !

Post by lgb-this »

I disabled the debugger (thanks for the hint) and get now these numbers:
  • 6.00 : t=6039ms => redraw active
  • 6.00 : t=3994ms => no redraw
  • 6.01 : t=14266ms => redraw active
  • 6.01 : t=14527ms => no redraw
I still have extreme differences and I'm surprised that your times are almost identical between 6.00 and 6.01.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 6.01 LTS is released !

Post by netmaestro »

Try to make a test where you're not drawing combo boxes on top of each other.
BERESHEIT
User avatar
lgb-this
User
User
Posts: 28
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: PureBasic 6.01 LTS is released !

Post by lgb-this »

Modified test prog without overlapping:

Code: Select all

If OpenWindow(0, 0, 0, 1200, 700, "Create ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  
  t1 = ElapsedMilliseconds()
  SendMessage_(WindowID(0),#WM_SETREDRAW,0,0)
  For i = 0 To 1000
    xx = 10 + ((i / 30) * 35)
    yy = 10 + ((i % 30) * 20)
    x = ComboBoxGadget(#PB_Any,xx,yy,30,15)
    For j = 0 To 20
      AddGadgetItem(x,-1,"Item " + Str(j) + "ms")
    Next j
  Next i
  t2 = ElapsedMilliseconds()
  SendMessage_(WindowID(0),#WM_SETREDRAW,1,0)
  f = CreateFile(#PB_Any,"t1.txt")
  WriteString(f,"Time=" + Str(t2-t1))
  CloseFile(f)
    
  Repeat
    Select WaitWindowEvent()
      Case #PB_Event_CloseWindow
        Quit = 1
    EndSelect    
  Until Quit = 1
EndIf
The timing has not changed:
  • 6.00 : t=8585 => redraw active
  • 6.00 : t=6383 => no redraw
  • 6.01 : t=27223 => redraw active
  • 6.01 : t=29769 => no redraw
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.01 LTS is released !

Post by Fred »

Please open a proper bug report, thank you.
Post Reply