SyntaxBomb - Indie Coders

Languages & Coding => PureBasic => Topic started by: Pfaber11 on July 22, 2022, 15:43:29

Title: DirectX9 in PB
Post by: Pfaber11 on July 22, 2022, 15:43:29
I'm currently using DirectX9 as OpenGL is not quite finished for PB 6.00. Hopefully it will be ready soon.


Title: Re: DirectX9 in PB
Post by: Naughty Alien on July 23, 2022, 05:19:36
I thought pb is using ogre, trough which you can select either OGL or DX?
Title: Re: DirectX9 in PB
Post by: Coder Apprentice on July 23, 2022, 06:06:15
Check Beta 6 changes.

https://www.purebasic.fr/english/viewtopic.php?t=77272 (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 (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 (https://www.purebasic.fr/english/viewtopic.php?t=79527)
Title: Re: DirectX9 in PB
Post by: Pfaber11 on July 23, 2022, 09:26:04
Yes PB does use Ogre but also requires OpenGL or DirectX9 .
Title: Re: DirectX9 in PB
Post by: Pfaber11 on August 04, 2022, 08:33:17
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 .