About SDL2 migration

Post Reply
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

About SDL2 migration

Post by cybermind »

So, nowadays, there is new version of SDL, which has a lot of new features, useful for Stratagus. There are some problems we need to solve:
-SDL2 has full support of 2D acceleration? Should we remove Stratagus's internal OpenGL renderer? I think there is no use for it after SDL2
-SDL2 has Android support. Should we support this platform in future releases of Stratagus?
-I don't know if there is unoffitial Maemo support for SDL2, but the library itself has no offitial support for Maemo. Should we support that platform in future Stratagus releases?
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: About SDL2 migration

Post by Kyran »

cybermind wrote:-SDL2 has full support of 2D acceleration? Should we remove Stratagus's internal OpenGL renderer? I think there is no use for it after SDL2
Stratagus' OpenGL is very buggy in Windows. The advantages of it over software rendering are support of overlays (Steam, Overlord, etc), video recording software (FRAPS), and it is faster. Would relying on SDL2 accomplish these advantages?
cybermind wrote:-SDL2 has Android support. Should we support this platform in future releases of Stratagus?
Supporting Android is a good idea, especially now that I am polishing my special game types. SDL2 supports Wayland, which is a thing on Sailfish and Nemo.

I have an Android 4.0.1 tablet. I could try getting it working on it after we convert.
cybermind wrote:-I don't know if there is unofficial Maemo support for SDL2, but the library itself has no official support for Maemo. Should we support that platform in future Stratagus releases?
Pali is the Maemo developer, and a very clever guy. If he wants to continue supporting Stratagus on Maemo, he'll find a way.

SDL2 killed CD-ROM support, so we may not be able to use it for the extractor. CD Music wouldn't be possible without an extension (I don't even remember if Stratagus supports CD Music).
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: About SDL2 migration

Post by cybermind »

Kyran wrote: SDL2 killed CD-ROM support, so we may not be able to use it for the extractor. CD Music wouldn't be possible without an extension (I don't even remember if Stratagus supports CD Music).
As I know, wargus didn't use SDL for CD data extracting, because SDL 1.2 didn't have fuctions to access CD data(it can play Audio CD tracks only, but Stratagus didn't use that; it had used it in older versions but someday it was removed). And are other programs used in wargus to extract CD music: cdparanoia and cdda2wav. So that's not a problem to move on SDL2.
We need to ask Pali about his opinion about migration: will he continue support for Maemo?
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: About SDL2 migration

Post by cybermind »

Well, the migration problem is more serious than I thought. Guichan hasn't been updating since 2009 and it has still using old SDL 1.2. So we need to move guichan on SDL2 too :( , though we could update both SDL and Guichan and release that as Stratagus 3.0
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: About SDL2 migration

Post by cybermind »

cybermind wrote:Guichan hasn't been updating since 2009 and it has still using old SDL 1.2.
https://github.com/kallisti5/guisan
That's the thing that we need :mrgreen:
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Re: About SDL2 migration

Post by Kyran »

Nice find! :D
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
Post Reply