Question on Purebasic DX9 subsystem

For everything that's not in any way related to PureBasic. General chat etc...
MushroomHead
User
User
Posts: 15
Joined: Wed Apr 27, 2005 2:55 pm

Question on Purebasic DX9 subsystem

Post by MushroomHead »

Hello,

I hope I have posted this in the right forum. I have been away from purebasic for a while and am just getting back into it. Looking at the history of changes in v4.30's manual, I see the following :-

Code: Select all

[b]16th December 2008 : Version 4.30[/b]

- Fixed: DX9 subsystem on Windows
The manual keeps referring to DX7 renderer for 2d sprites and 3d engine so what uses DX9?
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

If you specify the DX9 subsystem, it will use DX9 for sprite commands (not all are DX9 compatible) instead of DirectDraw7.
MushroomHead
User
User
Posts: 15
Joined: Wed Apr 27, 2005 2:55 pm

Post by MushroomHead »

Thanks for the answer, one silly question, how do you specify DX9 subsystem? i.e. what command?
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

In the compiler options, you can specify subsystems
MushroomHead
User
User
Posts: 15
Joined: Wed Apr 27, 2005 2:55 pm

Post by MushroomHead »

I just had a look, it says library subsystem ... what do you type in there?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

MushroomHead wrote:I just had a look, it says library subsystem ... what do you type in there?
DirectX9 !

Have a look at your %Purebasic%\SubSystems\ directory.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

:wink:

There is also a third-party DX9 Subsystem that may give better performance, but also may not be compatible with current versions of PB.
MushroomHead
User
User
Posts: 15
Joined: Wed Apr 27, 2005 2:55 pm

Post by MushroomHead »

Thanks!
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Be careful using 3D Sprites and floating point calculations together with the DirectX9 subsystem :evil:

At least the 32Bit version has still (or again?) bugs which makes terrible problems to do precise double calculation together with 3D sprites :cry:.

Therefore some of my applications (e.g. Forerunner) still have to be compiled using the default DirectX7 subsystem.

Michael
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

Michael Vogel wrote:Be careful using 3D Sprites and floating point calculations together with the DirectX9 subsystem :evil:

At least the 32Bit version has still (or again?) bugs which makes terrible problems to do precise double calculation together with 3D sprites :cry:.

Therefore some of my applications (e.g. Forerunner) still have to be compiled using the default DirectX7 subsystem.

Michael
Does the third-party DX9 subsystem have this issue?
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Digital Wargames wrote:
Michael Vogel wrote:...
Does the third-party DX9 subsystem have this issue?
No, I haven't tried any third-party solution for now. If you have any links for such a sub-system, I will give it a try...

Michael
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

Michael Vogel wrote: No, I haven't tried any third-party solution for now. If you have any links for such a sub-system, I will give it a try...

Michael
http://www.purebasic.fr/english/viewtop ... sc&start=0
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Hehe, that is the PureBasic DX9 subsystem iirc. Fantaisie acquired this from Stefan Moebius and added it to PB for the 4.20 version. It was quite buggy and hardly usable but Fred got most of the bugs out of it for the 4.30 release and it's really quite solid now. (though there could be some issues remaining, like Michael Vogel's). When 4.20 came out with a DX9 subsystem in it, I noticed right away that it had the exact same bugs and behaviors that S.M.'s had, and sometime later the general buzz was that this is where it originated.

I'm not 100% certain of the above, so if I'm out to lunch - sorry! (but I don't think so)
BERESHEIT
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

LOL, disregard my previous question/suggestion :oops:
Post Reply