PureBasic 4.40 Beta 4 available !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: PureBasic 4.40 Beta 4 available !

Post by djes »

I think I have a bad one :D

I have a little 3D intro, then a 2D menu, then a 3D background. The 3D background doesn't work if debugger is disabled. If I remove the 3D intro, it works again. I think I found why : I have to free the camera. But, if I free the camera after the intro, my 2D menu is all black :mrgreen:
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: PureBasic 4.40 Beta 4 available !

Post by Seymour Clufley »

What does it mean that the 2DDrawing library is "optimized for size"?
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: PureBasic 4.40 Beta 4 available !

Post by blueznl »

Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
I think it did not match my ego anymore so they inflated it a bit...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: PureBasic 4.40 Beta 4 available !

Post by freak »

Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
What do you think it means ? Its smaller of course.
quidquid Latine dictum sit altum videtur
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Re: PureBasic 4.40 Beta 4 available !

Post by Marco2007 »

freak wrote:
Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
What do you think it means ? Its smaller of course.
Is this really so important (today)?
It`s always about faster, smaller, etc....

I thought it`s always about longer, bigger.... :mrgreen:
PureBasic for Windows
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: PureBasic 4.40 Beta 4 available !

Post by Seymour Clufley »

I apologise for asking an obvious question, Freak.

I thought "optimized for size" may have meant something to do with different image sizes - eg. some functions work differently depending on the size of the image, to help speed up operations.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: PureBasic 4.40 Beta 4 available !

Post by freak »

Marco2007 wrote:
freak wrote:
Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
What do you think it means ? Its smaller of course.
Is this really so important (today)?
It`s always about faster, smaller, etc....

I thought it`s always about longer, bigger.... :mrgreen:
Its not so much a priority today, but if its possible to reduce the size without too much hassle then it is always a bonus.

In this case, the bigger benefit is from the improved code reuse inside the library (less code to maintain means less work on future updates and less potential for errors). The size reduction is just a positive side effect of that.
quidquid Latine dictum sit altum videtur
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic 4.40 Beta 4 available !

Post by Mistrel »

Yaaay! :D
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: PureBasic 4.40 Beta 4 available !

Post by djes »

I forgot to say that the ALT+Tab with a screen is working perfectly now, it's great :D
User avatar
thepastrycook
User
User
Posts: 19
Joined: Tue Aug 25, 2009 12:30 pm
Location: french

Re: PureBasic 4.40 Beta 4 available !

Post by thepastrycook »

Fred wrote:Hello,

It's the fourth beta release of the forthcoming 4.40 version, and it's mostly bug fixes. We encourage anyone who can to test its program on it, it will help to have a stable final version. Thanks a lot to all the current beta testers, it's very much appreciated !
thanks Fred

no directx9 : ok (framerate= 59) --> fluid :)
With directx9 : windowed mode(framerate= 63) --> jerk (saccade) bye bye pastrycook in windowed mode... "ooh noooo...."

i don't know use flipmode, test with sprite 2D:
http://www.purebasic.fr/french/viewtopic.php?f=2&t=9818

flipmode ? i don't know:

Code: Select all

If Fullscreen = #True
  If OpenScreen (1024, EcranY, 32,"vers l'infini 0.6")=0;, flipmode( #PB_Screen_WaitSynchronization)); flipmode(),refreshrate)=0  
     MessageRequester ( "Error" , "Can't open a 1024*768 - 32 bit screen !" , 0)
     End
  EndIf  
Else 
  If OpenWindow(0, 0,0, EcranX, EcranY ,"vers l'infini 0.52", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar| #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_ScreenCentered) 
    OpenWindowedScreen(WindowID(0),0,0, EcranX, EcranY, 0, 1, 1);,flipmode) 
    SetWindowColor(0, RGB (0, 0, 0))
  EndIf
EndIf
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Re: PureBasic 4.40 Beta 4 available !

Post by Digital Wargames »

- 2DDrawing library optimized for size
Thank you. I was wondering why the size of my EXE had suddenly grown quite a bit. :wink:
Post Reply