flareteam / flare-engine

Free/Libre Action Roleplaying Engine (engine only)
http://flarerpg.org/
GNU General Public License v3.0
1.1k stars 186 forks source link

Should we still support SDL 1.2? #1362

Closed dorkster closed 9 years ago

dorkster commented 9 years ago

Originally, we had two platforms that have kept us tied to SDL 1.2:

In my eyes, it's more a matter of when we drop SDL 1.2 than it is if. I would like to drop it before we release 1.0, since we could benefit from SDL 2's ability to scale graphics so that assets are about the same size regardless of the player's resolution.

Take these two user complaints for example:

I see us getting more of the 1st than the 2nd. :smile:

pennomi commented 9 years ago

I'd agree with dropping SDL 1.2 for Flare 1.0. No sense in looking backwards.

clintbellanger commented 9 years ago

I wouldn't mind dropping 1.2 support.

igorko commented 9 years ago

Hm, if I remember clearly, @clintbellanger was the one, who was against moving to SDL2, but it was long time ago, when SDL2 was in unstable shape. As for me, no opinion yet...

Bertram25 commented 9 years ago

AFAIR, @clintbellanger was against moving as he said, sdl2 was using bits of proprietary code somehow. I don't know whether it is still true. @clintbellanger why this change of mind? (Even if I do think moving on is a good thing ;])

clintbellanger commented 9 years ago

SDL2 wasn't stable or widely supported when we were making these decisions a long time ago. Should be much improved by now.

igorko commented 9 years ago

Does it really matter if we support SDL1 or no? It's just some small part of code that differs, and I do not see any problem in leaving it as is.

dorkster commented 9 years ago

@igorko The reason is that I want to have runtime scaling of graphics (I did this in my Ludum Dare game), which is only viable when we have GPU acceleration like in SDL 2. The other option is to implement that, but just not support it for SDL 1.2, but that doesn't seem like a good idea.

Of course, we only need to drop SDL 1.2 if such a feature is implemented. If there's some other reason it wouldn't work, it wouldn't make sense to rip out SDL 1.2.

dorkster commented 9 years ago

The Windows build can't move to SDL 2 until SDL 2.0.4 is out (https://github.com/clintbellanger/flare-engine/issues/1359).

Our schedule might work out so that SDL 2.0.4 comes out before our 1.0 release. In case it doesn't, would it make sense to package the development version of SDL 2.0.4 with the Windows build? That's probably a bad idea, but I just thought I'd throw it out there, since it sounds like it's already pretty stable (and better than 2.0.3 on Windows).

igorko commented 9 years ago

Here is a list of what we miss now when don't support SDL1.2. https://wiki.libsdl.org/Installation#Not_supported_or_abandoned ... Maybe this is valuable for someone.