The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
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)...
SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
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 wrote:
Quote:
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


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

MrTAToad


Joined: 13 Feb 2014
Posts: 205
Location: Chichester, England
The simple (and basic) answer is that SDL2 is hardware accelerated... Except when you tell it not too...
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
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!
SDL1/OGL Slow Compared To SDL2/DX On Win 8 VM?
Ryan C. Gordon
Guest

Quote:
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.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org