SDL2 movement

Discussion among members of the development team.

Moderator: Forum Moderators

Post Reply
Aginor
Inactive Developer
Posts: 11
Joined: July 31st, 2015, 10:31 pm

SDL2 movement

Post by Aginor »

Hi All,

I've started to look into some of the SDL2 work from the NotSoEasyCoding page, and I think there's some reasonable low hanging fruit to try to get feature parity with the current status of SDL1.2. I've made a wiki page with some of my thoughts and steps and I'm soliciting feedback. You can find it at http://wiki.wesnoth.org/SDL_2_%2B_OpenGL_port.

I think it is possible to move to SDL2 without rewriting the entire game engine, and the main benefit would be to use a library that hasn't been EOL, so when there are issues there's a way to upstream fixes/have upstream fix them.

I'm looking forward to hearing from you all :)
Aginor
Inactive Developer
Posts: 11
Joined: July 31st, 2015, 10:31 pm

Re: SDL2 movement

Post by Aginor »

Hi All,

As I'm sure you know, I have been working on finishing the SDL2 support for the game in the last couple of months. There's been a number of subtle, and not so subtle problems that have needed to be fixed for this, but it's finally reached a point in stability where I have been able to merge my development branch with master.
SDL2 support is merged in and enabled by default as of commit https://github.com/wesnoth/wesnoth/comm ... 81f5103b13 .

This commit also brings with it the rewritten hotkey-handling code, making hotkeys be the same keys on the keyboard, no matter what the keyboard layout is (it relies on scancodes instead of whatever character was read from the keyboard).

The next step for me now is to fix bugs, and make the resize handling in the code nicer. There's one open bug for laggy resize handling (#23934) whis is highest on my list of priorities.
The plan is to keep SDL2 and SDL1.2 functional for one release, then we'll remove SDL1.2 support from the game.
As a part of the bug-fix cycle we'll also try to improve performance and move to OpenGL acceleration of the rendering code. This will require rather large changes and I would appreciate your continued support and help with this.

There has been a few people that have been invaluable in this effort, and I don't think it would have happened without them. I would like to thank them especially for the work they have been doing and the help they've given me.
  • Lipkab, for doing all the hard work. He wrote most of the code for the SDL2 support and I have just been tidying it up and fixing bugs.
  • Wedge009, for help with testing and helping me test/reproduce bugs on platforms where I couldn't.
  • Shadowm, for support and guidance when I was having issues.
  • Celticminstrel, iceiceice, ancestral, aquileia, for helping with testing and the build systems and making SDL2 a default target for non-linux builds.
  • Gfgtdf, for help with testing.
Post Reply