Page 2 of 2

Re: PureBasic 4.40 Beta 4 available !

Posted: Fri Oct 09, 2009 9:57 pm
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:

Re: PureBasic 4.40 Beta 4 available !

Posted: Fri Oct 09, 2009 11:42 pm
by Seymour Clufley
What does it mean that the 2DDrawing library is "optimized for size"?

Re: PureBasic 4.40 Beta 4 available !

Posted: Fri Oct 09, 2009 11:49 pm
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...

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 12:02 am
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.

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 12:29 am
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:

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 2:03 am
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.

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 2:25 am
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.

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 4:06 am
by Mistrel
Yaaay! :D

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 9:41 am
by djes
I forgot to say that the ALT+Tab with a screen is working perfectly now, it's great :D

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 10, 2009 12:27 pm
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

Re: PureBasic 4.40 Beta 4 available !

Posted: Sat Oct 17, 2009 4:07 pm
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: