Page 33 of 42
Re: PureBasic 6.00 Beta 7 released !
Posted: Mon May 09, 2022 2:40 pm
by Fred
10 min is a lot, did you turned on the optimizations ? May be an antivirus/malware issue ?
Re: PureBasic 6.00 Beta 7 released !
Posted: Tue May 10, 2022 12:52 am
by DeanH
Optimization is off. Someone suggested turning it off previously. Threadsafe off. OnError off. Modern themes on. Rest is off.
The PC is a Win10-21H2 Intel i5, about 4 years old, 8Gb RAM, 3.40Ghz CPU 4 cores. SSD C: and D: drives.
I am using Beta 7.
Coretex is mandated here and it can throw false positives, but I do not think that is causing the slow compiling. See below.
Source code is 2.5Mb consisting of 1 main .pb file and 50 .pbi include files, plus some images.
The compiled exe is just over 7Mb with asm.
I have just run another test.
If I just do F5 to compile > run, a compilation exe of about 9.7Mb is produced and the program runs.
It always crashes with an IDE error when trying to compile to an exe. I have not yet worked out why but I suspect some of the include files have assembly code, like rotate image and list icon gadget sort.
With optimize on, the time to compile from pressing F5 was 5 and 1/2 minutes. I sat here and watched the clock.
Once it compiled, the program ran perfectly at normal speed.
Optimize off took over 4 minutes to compile.
Compiling using asm x64 was 4 seconds.
I found a copy of the 6.00 Beta 1 setup and tried that. Compiling 64-bit with the C compiler is 30 seconds. Same source code. I haven't kept the previous beta test releases to try but I think it was about this speed with Beta 5.
Re: PureBasic 6.00 Beta 7 released !
Posted: Tue May 10, 2022 11:45 am
by Fred
That's weird, we didn't changed the gcc compiler in between. I will run some test here and see if i can see the same difference between beta 1 and 7
Re: PureBasic 6.00 Beta 7 released !
Posted: Wed May 11, 2022 1:38 am
by DeanH
Sure is strange. I verified the problem last night. I tried it on my home PC - which is a high-performance machine. CPU is i7, 8 core running at 4.3Ghz with SSD drives and 16Gb ram. Same version of Windows 10 21H2. I only have Defender and Malware Bytes and both are set to exclude the folder being used. I used a stop watch to time compiling. Took almost 3 minutes with the C- backend compiler. I know it didn't take that long before.
As I said, I have not kept the setup files for the previous beta versions. The only one I found and tested was for Beta 1, which gave 30 seconds. I think Beta 4 or 5 was the same as that but not sure about Beta 6.
Re: PureBasic 6.00 Beta 7 released !
Posted: Wed May 25, 2022 12:00 am
by deviousduck
Just tested Beta 7 x64 on MacOS.
Source code compiles and runs fine. but it seems that Listview gadgets no longer work with VoiceOver.
Tested with 5.73LTE. and Listviews still work fine with VoiceOver.
D
Re: PureBasic 6.00 Beta 7 released !
Posted: Wed May 25, 2022 10:08 am
by mk-soft
The problem is that PB uses a separate Cell object for ListViewGadget and ListIconGadget. PBIconTextCell'. This is not compatible with the standard cell of the NSTableView.
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 4:30 pm
by Fred
Beta 8 is out, with some more changes and improvements:
Code: Select all
- Changed the Mouse library on Windows to use RawInput instead of DirectX to support HighDPI mouse
- Added auto DPI support for Menu and ToolBar library (Windows)
- Fixed the IDE for High DPI (Windows)
- Removed ToolBarStandardButton() as it doesn't support high DPI and is very bad looking
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 4:46 pm
by marcoagpinto
Fred wrote: Wed May 25, 2022 4:30 pm
Beta 8 is out, with some more changes and improvements:
Code: Select all
- Changed the Mouse library on Windows to use RawInput instead of DirectX to support HighDPI mouse
- Added auto DPI support for Menu and ToolBar library (Windows)
- Fixed the IDE for High DPI (Windows)
- Removed ToolBarStandardButton() as it doesn't support high DPI and is very bad looking
Hello Fred!
Has the window size issue in Ubuntu 22.04LTS been fixed?
Thanks for your hard work!
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 4:49 pm
by Paul
Fred wrote: Wed May 25, 2022 4:30 pm
Beta 8 is out, with some more changes and improvements:
Code: Select all
- Removed ToolBarStandardButton() as it doesn't support high DPI and is very bad looking
So will there be a replacement for this or will PureBasic 6 not be backward compatible in this area?
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 5:49 pm
by mk-soft
Paul wrote: Wed May 25, 2022 4:49 pm
Fred wrote: Wed May 25, 2022 4:30 pm
Beta 8 is out, with some more changes and improvements:
Code: Select all
- Removed ToolBarStandardButton() as it doesn't support high DPI and is very bad looking
So will there be a replacement for this or will PureBasic 6 not be backward compatible in this area?
Was for macOS. Adapt it a little and it should run.
Module ToolBarStandardButton ...
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 6:18 pm
by ChrisR
Fred wrote: Wed May 25, 2022 4:30 pm
Beta 8 is out, with some more changes and improvements:
Code: Select all
- Removed ToolBarStandardButton() as it doesn't support high DPI and is very bad looking
ToolBarStandardButton() is still in the help with examples.
Is there a possibility to have an equivalent to #PB_ToolBarIcon_New, Open,... #PB_ToolBarImage_New: LoadImage(#PB_ToolBarIcon_New, #PB_Compiler_Home + "examples/sources/Data/ToolBar/New.png")
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 6:22 pm
by mk-soft
marcoagpinto wrote: Wed May 25, 2022 4:46 pm
Hello Fred!
Has the window size issue in Ubuntu 22.04LTS been fixed?
Thanks for your hard work!
Test it yourself ... but
Yes, Wayland is fixed. And CSS Style adjusted for smaller ButtonGadget, StringGadget and PanelGadget Title height.
@Fred
Thanks for the very much work
Re: PureBasic 6.00 Beta 8 released !
Posted: Wed May 25, 2022 6:44 pm
by JHPJHP
Moved to BUG REPORTS.
Re: PureBasic 6.00 Beta 8 released !
Posted: Thu May 26, 2022 5:48 am
by thyphoon
Thanks for this great work

I love to see Purebasic evolued
I have some problem with the new mouse rawinput and 2 monitors.
when in move in my game the cursor to the right a second cursor appear on the second monitor, and if i Click in ma game , it click on the second monitor too

Re: PureBasic 6.00 Beta 8 released !
Posted: Thu May 26, 2022 10:31 am
by Psychophanta