DirectX9 in PB

Started by Pfaber11, July 22, 2022, 15:43:29

Previous topic - Next topic

Pfaber11

I'm currently using DirectX9 as OpenGL is not quite finished for PB 6.00. Hopefully it will be ready soon.


HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Naughty Alien

I thought pb is using ogre, trough which you can select either OGL or DX?

Coder Apprentice

#2
Check Beta 6 changes.

https://www.purebasic.fr/english/viewtopic.php?t=77272

- Added  english documentation for all new features and commands
- Changed: the default subsystem for screen/sprite is now OpenGL on Windows for more consistency. DirectX9 is still  available as a subsystem.
- Changed: OGRE only supports OpenGL now, which ease the porting to Linux/OSX and allow to focus on only GLSL for shaders

They wanted to ditch the directx9 renderer of Ogre and focus on the OpenGL one for better multiplatform support. They are also working on direct shader support. So far not everything is working with the OpenGL renderer (which was always buggy btw) so they kept the directx9 for now...but they do want to get the rid of it, which might be a pretty bad idea overall since in a case of PureBasic's Ogre implementation on windows the directx9 renderer was always faster and relatively bug free. They also want to move the 2D sprite engine to OpenGL so it's also the default system there. However, again, because of performance differences they left the directx9 and directx11 sprite subsystems in...

Terrain bug with OpenGL confirmed. Wasn't fixed for v6 final.
https://www.purebasic.fr/english/viewtopic.php?t=79303

The new PureBasic v6's biggest additional feature is a new C compiler backend that made all the C optimizations available therefore final executable faster and also a new Raspberry version possible. But after more than a year beta things look pretty messy...

Optimizer crippled in v6 final.
https://www.purebasic.fr/english/viewtopic.php?t=79527

Pfaber11

Yes PB does use Ogre but also requires OpenGL or DirectX9 .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

It is a shame OpenGL is not functional yet but I think it will be soon . I'm doing well with DX9 right now which is just as well .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz