Using Love for an application which isn't a game
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love for an application which isn't a game
If you want to use lua to write an application I personally think love is one of the better choices. Many of the dedicated gui libraries for lua suck. They generally lack documentation and expect the user to have more knowledge than they need. In love using the various gui libraries you have complete control over the appearance and functionality of your app. Love is also much much more simpler than libraries like wxLua.
Re: Using Love for an application which isn't a game
What do you mean with "the various gui libraries" ? Can you mention one or two just for me to know what you're mentioning?
Thanks.
Thanks.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love for an application which isn't a game
Loveframes, Luigi, suit, or Adn's 2 libraries. There is a ton of gui libraries and one would surely fit your need.
-
- Party member
- Posts: 227
- Joined: Thu Jun 28, 2012 8:46 pm
Re: Using Love for an application which isn't a game
@mmanso, I can only speak about wxlua a bit. I've been developing a cross-platform Lua IDE and it has been fairly straightforward process, although there are some differences to keep in mind (as wxwidgets toolkit that wxlua is based on is trying to keep "native" look on platforms it supports). I have it working on Windows, OSX, and Linux (with separate packages for each platform), but I structured the repository in a way that allows to run the application from a cloned copy on each of the platforms.
If you want to look at some of the examples, I found wxlua samples to be useful to see the capabilities it supports, although the default look and feel is a bit outdated, it's possible to make it more "modern" with few tweaks. You can use the the IDE I mentioned earlier to run those examples as it already includes compiled wxlua libraries (or you can build one from scratch). Paul.
If you want to look at some of the examples, I found wxlua samples to be useful to see the capabilities it supports, although the default look and feel is a bit outdated, it's possible to make it more "modern" with few tweaks. You can use the the IDE I mentioned earlier to run those examples as it already includes compiled wxlua libraries (or you can build one from scratch). Paul.
Re: Using Love for an application which isn't a game
Gööi is a GUI library specifically designed for Android.
Re: Using Love for an application which isn't a game
The main problem, as I see it, is performance. Löve is designed for games. That means that it will take as much resources as it can, to stay fast and responsive. On mobile devices, using this for normal apps will lead to excessive battery drain and an inferior multitasking experience.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: Using Love for an application which isn't a game
@T-Bone: from what I've seen in the docs, you can disable a lot of things you don't need (like joystick handling for example). I don't know if in the end of that process Love will be "less" performant and save more battery but for the project I'm trying to tackle, that's not really a big issue.
Being cross platform with the same codebase is the priority.
@bobbyjones: I think those libraries have enough for the project I've in mind.
I'll play around with all this a bit to try and decide in the end what to do...
Thanks a lot.
Being cross platform with the same codebase is the priority.
@bobbyjones: I think those libraries have enough for the project I've in mind.
I'll play around with all this a bit to try and decide in the end what to do...
Thanks a lot.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love for an application which isn't a game
How could it use less resources? I would think that this all would be determined from the way the program is coded.T-Bone wrote:The main problem, as I see it, is performance. Löve is designed for games. That means that it will take as much resources as it can, to stay fast and responsive. On mobile devices, using this for normal apps will lead to excessive battery drain and an inferior multitasking experience.
Re: Using Love for an application which isn't a game
The underlying framework makes many decisions based on how it think its applications will work. A normal UI framework is much better at releasing resources when they're not used, and does less work when idle. An obvious example is that normal UI frameworks generally only redraws the screen when something changes, whereas a game framework redraws every frame. The latter is fully reasonable for a game, but for a normal app (which might be running in the background for long periods of time) that's far from ideal. Normal UI libraries are also better at using the OS' built-in functionality for many things (which game engines cannot do, to keep things flexible).bobbyjones wrote:How could it use less resources? I would think that this all would be determined from the way the program is coded.T-Bone wrote:The main problem, as I see it, is performance. Löve is designed for games. That means that it will take as much resources as it can, to stay fast and responsive. On mobile devices, using this for normal apps will lead to excessive battery drain and an inferior multitasking experience.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love for an application which isn't a game
But the redraw every frame thing can be configured by the user by changing love.run. And the memory usage thing is probably would be an issue with Lua side code. Which is dependent on the programmers ability. I don't think there is much difference from just using wxLua or using love. The main difference would be how you draw your GUI. I believe that you can probably(if you tried hard enough) get a love application that is just as performant as luaWx. There are more benefits than there is drawbacks IMO. For example spotify on desktop uses Electron iirc. Because it uses Electron it allows them to customize their UI to exactly how they want it to look. Using wxLua or another Lua GUI library would make things difficult IMO. I doubt Spotify could be made with WxLua.
Who is online
Users browsing this forum: Google [Bot] and 2 guests