SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?

SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?

Hi,

We are working on porting “PacDude Hero 100%” from SDL1/OpenGL to SDL2/DirectX.
Game will still be 100% cross-platform and will have makefile and source code to play on any Linux.

We are noticing large performance differences between SDL1/OpenGL and SDL2/DirectX
on our Microsoft Windows 8.1 Pro 64Bit VMWare Player guest virtual machine?
SDL2/DirectX seems to be performing much better in the Win 8 VM compared to our old SDL1/OpenGL project?
(we are using Xubuntu 15.04 64Bit as our host operating system with proprietary AMD display driver installed)

Any ideas why this is so?
When the port is finished, we will as usual release the entire project on this forum(perhaps by end of this weekend)…------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Just to clarify your question, you are asking why SDL 2.x performs better
than SDL 1.x?On Wed, Jun 10, 2015 at 4:45 PM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?

Hi,

We are working on porting “PacDude Hero 100%” from SDL1/OpenGL to
SDL2/DirectX.
Game will still be 100% cross-platform and will have makefile and source
code to play on any Linux.

We are noticing large performance differences between SDL1/OpenGL and
SDL2/DirectX
on our Microsoft Windows 8.1 Pro 64Bit VMWare Player guest virtual machine?
SDL2/DirectX seems to be performing much better in the Win 8 VM compared
to our old SDL1/OpenGL project?
(we are using Xubuntu 15.04 64Bit as our host operating system with
proprietary AMD display driver installed)

Any ideas why this is so?
When the port is finished, we will as usual release the entire project on
this forum(perhaps by end of this weekend)…


JeZxLee
JessePalser GMail com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The simple (and basic) answer is that SDL2 is hardware accelerated… Except when you tell it not too…

Hi,

I know that standard SDL1 is not hardware accelerated,
but our old SDL1 game engine runs OpenGL for hardware acceleration.

With that said I am just curious why SDL1 with OpenGL is much slower than SDL2 with DirectX?
(again, this is on VMWare Player Win 8 VM guest on Linux host)

Thanks!------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

With that said I am just curious why SDL1 with OpenGL is much slower
than SDL2 with DirectX?
(again, this is on VMWare Player Win 8 VM guest on Linux host)

Well, apples and oranges in general…maybe the OpenGL code was slower
than the D3D code and only became apparently when running in a VM, or
the GL did something that the VM had to emulate in software…it’s hard
to say.

Until we start having apps and VMs with Mantle/Metal/Vulkan/DX12
support, there will always be mystery performance issues with GPU
support in VMs (and probably even then, too).

–ryan.