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
PureBasic 4.40 Beta 4 available !
Re: PureBasic 4.40 Beta 4 available !
I think I have a bad one 
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
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
-
Seymour Clufley
- Addict

- Posts: 1266
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: PureBasic 4.40 Beta 4 available !
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."
Re: PureBasic 4.40 Beta 4 available !
I think it did not match my ego anymore so they inflated it a bit...Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: PureBasic 4.40 Beta 4 available !
What do you think it means ? Its smaller of course.Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
quidquid Latine dictum sit altum videtur
Re: PureBasic 4.40 Beta 4 available !
Is this really so important (today)?freak wrote:What do you think it means ? Its smaller of course.Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
It`s always about faster, smaller, etc....
I thought it`s always about longer, bigger....
PureBasic for Windows
-
Seymour Clufley
- Addict

- Posts: 1266
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: PureBasic 4.40 Beta 4 available !
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.
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."
Re: PureBasic 4.40 Beta 4 available !
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.Marco2007 wrote:Is this really so important (today)?freak wrote:What do you think it means ? Its smaller of course.Seymour Clufley wrote:What does it mean that the 2DDrawing library is "optimized for size"?
It`s always about faster, smaller, etc....
I thought it`s always about longer, bigger....
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
Re: PureBasic 4.40 Beta 4 available !
I forgot to say that the ALT+Tab with a screen is working perfectly now, it's great 
- thepastrycook
- User

- Posts: 19
- Joined: Tue Aug 25, 2009 12:30 pm
- Location: french
Re: PureBasic 4.40 Beta 4 available !
thanks FredFred 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 !
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

- Posts: 203
- Joined: Sat May 23, 2009 4:39 am
Re: PureBasic 4.40 Beta 4 available !
Thank you. I was wondering why the size of my EXE had suddenly grown quite a bit.- 2DDrawing library optimized for size
