Page 1 of 2
PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 8:49 pm
by Fred
Hi there,
A new version is out and it does bring bug fixes, as usual, and one new feature: CG support for the 3D engine, so you can use CG written shaders in you plan to target different OS. As a side effect, it enables the terrain shader on OpenGL. To use it, you need to install the CG dll from the nvidia site:
https://developer.nvidia.com/cg-toolkit-download . This DLL isn't requiered to launch the engine3d, and if you plan to use it, you need to put #PB_Engine3D_EnableCG flag in InitEngine3D(). See the terrain examples for more infos. Also added a flag to MoveCamera() to allow local move (use #PB_World or #PB_Local)
The final release is imminent, so please test your software with it, or you will be left in the dust if it doesn't run well with the final

.
Have fun !
The Fantaisie Software Team.
Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 9:07 pm
by LCD
Thanks! Downloading now. I never coded anything 3D, but this sounds now very interesting, so I will start writing a game. I just hope, the shaders will work on ATI cards too because I never had a nVidia here.
Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 9:12 pm
by netmaestro
Beta 7 windows x86 is 52 megabytes? Previous v5 betas were 27mb.
Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 9:55 pm
by Comtois
netmaestro wrote:Beta 7 windows x86 is 52 megabytes? Previous v5 betas were 27mb.
in Examples/3D/Data/Textures : There are 9 files
terrain01_xxxxxxx.Dat, Fred forgot to delete them

Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 10:04 pm
by LuCiFeR[SD]
ooooh, those 3d demos are looking pretty nice! I've not looked at the 3D side of things for a long time! thanks very much for your hard work PB team

Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 10:13 pm
by Fred
Comtois wrote:netmaestro wrote:Beta 7 windows x86 is 52 megabytes? Previous v5 betas were 27mb.
in Examples/3D/Data/Textures : There are 9 files
terrain01_xxxxxxx.Dat, Fred forgot to delete them

That's why it tooks ages to upload.. I wondered if my connections was somewhat broken

. Will fix that for final

Re: PureBasic 5.00 beta 7 is out !
Posted: Wed Oct 24, 2012 10:27 pm
by Andre
This new beta is compiling fine with our 30,000+ line project - tested on MacOS 10.5.8 (32 bit). So thanks!
I would expect that this new version is working fine with my project source on MacOS, if
this bug with GetGadgetItemAttribute() always giving a return value of 0 for ListIcon column width will be fixed.
Btw... from the documentation side at least the missing help entries / false links (see sticky threads
here) should be corrected.
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 12:30 am
by skywalk
Does anybody else notice a big speed increase in compile times with 5b7?
No numbers, but I'm guessing 5-10x faster on Windows 7 x86

It is shocking to me...
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 2:34 am
by Guimauve
Hello everyone,
1st : Yes compiling a program is little bit much faster than the previous beta
2nd : I'm working on a Ship Editor for my game project and this editor use 4 GLAreaGadget(). In the previous beta this program are running very fast but with the Beta 7, OH MY GOD !
The entire program are slow, very slow. I'm not kidding or exaggerating, just displaying a Menu or a Popup Menu take 30 to 45 seconds to appear partially (just the Shadow of the menu) and appear completely only after 60 to 90 seconds. And when they appear, moving the mouse cursor hover the menu items, they don't switch to their hovered state. Clicking on them trigger events but it's not instantly responding.
Apparently it's not related to Menu or Popup menu because example for the help file are working normally. I will do my best to investigate this problem tomorrow but this will not be an easy task since I have to work blind since compiling with the debugger makes the program to crash with an Invalid Memory Access error even before it was launched. And this result came with the Beta 7, all previous beta just work fine.
@Fred : The likelihood of this phenomenon comes from the GLAreaGadget() itself is very high. I will investigate this bad behaviour newly introduced with the Beta 7 tomorrow. I will keep you in touch !
Best regards
Guimauve
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 8:02 am
by deeproot
Thanks Fred
All good here - not using 3D but biggish project with a lot of database, about 28,000 lines, Winx86. Complies and runs fast, even on a slow, old PC.
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 8:42 am
by Fred
skywalk wrote:Does anybody else notice a big speed increase in compile times with 5b7?
No numbers, but I'm guessing 5-10x faster on Windows 7 x86

It is shocking to me...
We didn't do anything special, may be your AntiVirus get updated ?
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 1:50 pm
by Guimauve
Fred wrote:We didn't do anything special, may be your AntiVirus get updated ?
And did you do something in the Events management with GTK ? Apparently, now I need to skip some refresh because the GLAreaGadget() always fire event at each loop even if I do nothing or I generate event on other element (Gadgets and Menus) of the GUI. This make the program to continuously call "gtk_gl_area_swap_buffers()" and generate the important lag amplified by the 4 GLAreaGadget() I use.
Best regards
Guimauve
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 2:13 pm
by djes
It's a very big news, Fred ! I was hoping this for a very long time

Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 2:15 pm
by Fred
Guimauve wrote:Fred wrote:We didn't do anything special, may be your AntiVirus get updated ?
And did you do something in the Events management with GTK ? Apparently, now I need to skip some refresh because the GLAreaGadget() always fire event at each loop even if I do nothing or I generate event on other element (Gadgets and Menus) of the GUI. This make the program to continuously call "gtk_gl_area_swap_buffers()" and generate the important lag amplified by the 4 GLAreaGadget() I use.
Best regards
Guimauve
No, i don't think we have changed something on linux at all.
Re: PureBasic 5.00 beta 7 is out !
Posted: Thu Oct 25, 2012 2:16 pm
by Fred
djes wrote:It's a very big news, Fred ! I was hoping this for a very long time

True, i did the basic implementation some years ago on your demand
