A few questions regarding the subsystems

Everything else that doesn't fall into one of the other PB categories.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

A few questions regarding the subsystems

Post by jacdelad »

Hi,
until now I never was in touch with the subsystems (only on Windows and no 3D). Now, I touched them (yeah!) and a few questions popped up:

The help says I can only use one subsystem in my program: https://www.purebasic.com/documentation ... stems.html
The "Compiling your programs" page state I can use more than one subsystem, separated by commas: https://www.purebasic.com/documentation ... piler.html
Is this correct?

When using the SubSystem() command, I have to define if "SubSystemXY" is used. Is there a way to get the used subsystem, e.g. by

Code: Select all

MySubSys.s=SubSystem()
?

On Windows, when I don't define a subsystem, my program works. Defining "DirectX9" makes my program faster, but the textures are too big (though the generation algorithm is the same). Defining "DirectX11" doesn't work, as Init3D() fails.

The help also states that the 3D engine is not available when using DirectX9/11. What exactly does this mean (because basically I still can do all the 3D things)? Is this referencing to the 3D gadget library?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
idle
Always Here
Always Here
Posts: 5899
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: A few questions regarding the subsystems

Post by idle »

I was under the impression the graphic subsystems only applied to the sprite lib for 2D screens.
and you can only use one subsystem in the exe.
Post Reply