PureBasic 5.40 LTS beta 10 is out !

Developed or developing a new product in PureBasic? Tell the world about it.
Joubarbe
Enthusiast
Enthusiast
Posts: 703
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Joubarbe »

Is there any plan to update SDL to the latest version in the 5.40 final ?
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Olby »

What is the reason for the removal of RemovePackFile() and PackEntrySize() with #PB_Packer_CompressedSize? Do we have to copy files over to a new pack file in order to remove some? Thanks.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Fred »

It was already the case before, there was no inplace removefile.
thanos
Enthusiast
Enthusiast
Posts: 423
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Re: PureBasic 5.40 LTS beta 8 is out !

Post by thanos »

Hello.
It seems that the Variable Viewer on the x86 environment does not show the global variables.
It shows the global arrays, linked lists and maps normally.
Regards.

Thanos
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Fred »

If you don't need performances, you can use an image and then draw it on your sprite/texture, it should do the job.
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: PureBasic 5.40 LTS beta 8 is out !

Post by GG »

Alexi wrote:then i'll kiss the hole team!
The hole team or the whole team ? Let me choose... :)
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Danilo »

Fred wrote:If you don't need performances, you can use an image and then draw it on your sprite/texture, it should do the job.
And if you need performance? Does the VectorDrawing lib use (slow) GDI+ on all supported versions of Windows, or is it able to detect
the Windows version at runtime and use more modern (hardware-accelerated) API's like Direct2D and DirectWrite, for example?

(If not, could that be changed? GDI+ is already listed as 'Legacy Graphics' - it's too old and slow)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 5.40 LTS beta 8 is out !

Post by netmaestro »

I wouldn't read too much into the word 'legacy'. It applies because the technology has been in Windows for a long time now but I wouldn't call the performance of GDI+ 'slow'.
BERESHEIT
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Danilo »

netmaestro wrote:I wouldn't read too much into the word 'legacy'. It applies because the technology has been in Windows for a long time now
It means the listed technologies are not developed any further. It is what it is, and as a software graphics engine
it will probably work for some years. It does not depend on DX etc., so no changes are required for new Windows versions.
Just like GDI - it's still there.
netmaestro wrote:but I wouldn't call the performance of GDI+ 'slow'.
Check out some .NET WPF toolkits with animated GUI controls (animated Charts, Gauges and such stuff).
Performance of GDI+ is bad the bigger the Canvas is. With a very big or even fullscreen Canvas performance
gets very slow (displays/monitors get also bigger, 4k etc.). When using Matrix transformations (rotation etc.)
it's much slower with a software renderer.

Anyway, it was just an idea. Why not add a Direct2D/DirectWrite layer if it's possible and available at runtime?
If not, the fallback GDI+ is used. With that, VistaSP2/Win7/Win8.x/Win10 users could get some enhancement,
while the app still works using GDI+ for the XP guys. Same could probably be done for the 2DDrawing lib and
ImageOutput/WindowOutput, to speed things up.
Everthing MS did in the last 10 years (WPF, Metro/ModernUI etc.) is using hardware-accelerated GUIs.
Scintilla has also a mode to use Direct2D/DirectWrite.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: PureBasic 5.40 LTS beta 8 is out !

Post by freak »

The focus of the VectorDrawing library for this release was functionality and cross-platform compatibility. I.e. to get something that works well on all platforms. Performance was not my primary concern.

We'll see what improvements can be made in the future.
quidquid Latine dictum sit altum videtur
Joubarbe
Enthusiast
Enthusiast
Posts: 703
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Joubarbe »

That is a damn good work nonetheless ! Fixes many problems at once (AA, resolution, area drawing, texts...), thank you !
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Danilo »

freak wrote:The focus of the VectorDrawing library for this release was functionality and cross-platform compatibility. I.e. to get something that works well on all platforms. Performance was not my primary concern.

We'll see what improvements can be made in the future.
Thank you!
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 5.40 LTS beta 8 is out !

Post by Lebostein »

Is that new vector library fast enough for games? Or only to create static images?
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: PureBasic 5.40 LTS beta 8 is out !

Post by applePi »

the animated vector drawing http://purebasic.fr/english/viewtopic.p ... 52#p472019
posted by eddy and edited in 22 sept (not like the picture) is a show case for a possible usage in 2D games. thanks i have visited the page again. should be added to the official examples.
thanos
Enthusiast
Enthusiast
Posts: 423
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Re: PureBasic 5.40 LTS beta 8 is out !

Post by thanos »

thanos wrote:Hello.
It seems that the Variable Viewer on the x86 environment does not show the global variables.
It shows the global arrays, linked lists and maps normally.
Regards.

Thanos
Did anyone else faced this problem?
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
Post Reply