Alternatives to SDL

Alternatives to SDL

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Alternatives to SDL

Post by Jools » 11 Dec 2014, 18:02

In response to http://springrts.com/mantis/view.php?id=4627 (interface broken after alt-tab), I really think we need to talk about alternatives to SDL 2. AFAIK, SDL 1.2 didn't have this issue.

Are there any alternatives to using SDL? How about reverting back to SDL 1.2? In my opinion, this issue is pretty major, and the benefit of having more scripts in SDL 2.0 is not that big.
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Alternatives to SDL

Post by SinbadEV » 11 Dec 2014, 18:07

Jools wrote:benefit of having more scripts in SDL 2.0 is not that big
That's because you speak English... if you don't include support for non-English characters you are telling %75 of the world they aren't welcome... not to mention inconveniencing all of those people who speak English as a second language.

(Not disagreeing with your entire comment, just that specific statement)
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Alternatives to SDL

Post by Jools » 11 Dec 2014, 20:53

SinbadEV wrote:
Jools wrote:benefit of having more scripts in SDL 2.0 is not that big
That's because you speak English... if you don't include support for non-English characters you are telling %75 of the world they aren't welcome... not to mention inconveniencing all of those people who speak English as a second language.

(Not disagreeing with your entire comment, just that specific statement)
That's true. But I would have to add that my own language is not English either, but that I nonetheless prefer to communicate in English because I do not believe in the quality of translation in general.

I guess this issue is only present in windows, which maybe explains why it wasn't discovered before choosing to use SDL 2.0.

I think it's a quite severe issue: you alt-tab out of the game and back in, then if you change fullscreen setting you get a banner on top of the window that does not respond to any command. And there is no way of getting the UI to work except restarting the program. That's not acceptable in my opinion.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Alternatives to SDL

Post by jK » 11 Dec 2014, 23:03

Jools wrote:you alt-tab out of the game and back in, then if you change fullscreen setting you get a banner on top of the window
Is that the new konami code?
0 x

Super Mario
Posts: 814
Joined: 21 Oct 2008, 02:54

Re: Alternatives to SDL

Post by Super Mario » 11 Dec 2014, 23:49

Serious question, has anyone try to reproduce this bug with SDL only?
0 x

User avatar
Silentwings
Moderator
Posts: 3581
Joined: 25 Oct 2008, 00:23

Re: Alternatives to SDL

Post by Silentwings » 12 Dec 2014, 00:21

Assuming you mean "with SDL 1.2 only" - I remember doing some brief searching some months back and finding that this bug was confirmed (by SDL developers) as an issue that became present in SDL 2.0.
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Alternatives to SDL

Post by SinbadEV » 12 Dec 2014, 01:47

I thought he meant "Other software that uses SDL 2"

Quick internet search shows that Battle for Westnoth are also working towards SDL 2 in their development branch so maybe that would be a good test case: http://forums.wesnoth.org/viewtopic.php?f=5&t=40694 (as an Open Source SDL 2 migrating project in active development they are in a very similar boat to us)
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Alternatives to SDL

Post by Jools » 12 Dec 2014, 02:32

0 x

gajop
Moderator
Posts: 3022
Joined: 05 Aug 2009, 20:42

Re: Alternatives to SDL

Post by gajop » 12 Dec 2014, 07:18

Well as long as there as there is a workaround, we could always that. We really shodnt downgrade now. Only SDL2 has support for international users.
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Alternatives to SDL

Post by Jools » 12 Dec 2014, 15:30

Well, maybe no point downgrading as you could just disable fullscreen switching in-game to achieve same result. Or people could be made aware to not do it, or to di it on own risk...
0 x

Super Mario
Posts: 814
Joined: 21 Oct 2008, 02:54

Re: Alternatives to SDL

Post by Super Mario » 12 Dec 2014, 23:14

Silentwings wrote:Assuming you mean "with SDL 1.2 only" - I remember doing some brief searching some months back and finding that this bug was confirmed (by SDL developers) as an issue that became present in SDL 2.0.
No I meant SDL 2.0 only.
0 x

User avatar
scifi
Posts: 848
Joined: 10 May 2009, 12:27

Re: Alternatives to SDL

Post by scifi » 13 Dec 2014, 01:33

well there is no point in downgrading, ive worked with SDL 2.0 before, nothing fancy just a barebones renderer with glew attached to it.

From my minimum knowledge, downgrading or replacing it would take a huge amount of time specially since this is a part of spring itself it would be like tearing the engine apart.

I would suggest waiting for a fix if its a problem with SDL, besides what other framework rather than SDL itself would you replace it with, FreeGlut? thats just like rewriting the whole thing over, but i might be mistaken.
0 x

abma
Spring Developer
Posts: 3543
Joined: 01 Jun 2009, 00:08

Re: Alternatives to SDL

Post by abma » 14 Dec 2014, 22:37

@jools:

did you try non-borderless mode (="normal" fullscreen mode) ?

switching framework imo makes no sense, fix SDL2 instead as (if at all) its a tiny code change to fix this.
0 x

User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: Alternatives to SDL

Post by code_man » 16 Dec 2014, 18:09

Cant say im fond of SDL 2.0, its been a problem with many other programs.
Fortunetly spring doesnt seem very much affected.

Still, if someone would ask me id say stick with 1.2, atleast until the SDL people get their stuff straight.
0 x

User avatar
Silentwings
Moderator
Posts: 3581
Joined: 25 Oct 2008, 00:23

Re: Alternatives to SDL

Post by Silentwings » 05 Jan 2015, 11:22

Sidetrack: http://springrts.com/mantis/view.php?id=4442, which is one SDL related issue, now has a potential fix and wants testing.
0 x

abma
Spring Developer
Posts: 3543
Joined: 01 Jun 2009, 00:08

Re: Alternatives to SDL

Post by abma » 05 Jan 2015, 11:30

SDL1.2 doesn't allow to switch resolutions without restarting the program. also SDL2 allowed proper utf8 support.

please test the development version:

http://springrts.com/phpbb/viewtopic.php?f=12&t=32881

full screen switch should be fine there (which was the initial problem in this thread?!)
0 x

Post Reply

Return to “Engine”