Page 3 of 3
Re: Using Love for an application which isn't a game
Posted: Wed Feb 10, 2016 7:57 pm
by pgimeno
Unfortunately, Love doesn't receive expose (redraw) events. This means that you still have at least to redraw a canvas every frame.
Re: Using Love for an application which isn't a game
Posted: Wed Feb 10, 2016 8:16 pm
by Davidobot
pgimeno wrote:Unfortunately, Love doesn't receive expose (redraw) events. This means that you still have at least to redraw a canvas every frame.
Actually, in love.run, the graphics are cleared every frame. You could easily write a system that only draws a frame if something has changed.
Re: Using Love for an application which isn't a game
Posted: Wed Feb 10, 2016 8:26 pm
by bobbyjones
Yes that's what I was hinting at. You could reduce the redrawing to a smaller amount. But it is still recommended to redraw often to remove artifacts as they appear.
Re: Using Love for an application which isn't a game
Posted: Wed Feb 10, 2016 8:54 pm
by pgimeno
When the window is partially or totally hidden, and then made visible again, if you don't redraw at that point then the previous contents of the window won't be there. Redrawing less often could be a workaround, yes, at the cost of a bit of responsiveness.
Re: Using Love for an application which isn't a game
Posted: Thu Feb 11, 2016 9:09 am
by mmanso
If the application runs on a device connected to a power socket, this Isnt an issue, correct?
When the app is paused on android it will be stoped and not spending any resourses, correct?
Re: Using Love for an application which isn't a game
Posted: Thu Feb 11, 2016 1:12 pm
by Davidobot
mmanso wrote:If the application runs on a device connected to a power socket, this Isnt an issue, correct?
When the app is paused on android it will be stoped and not spending any resourses, correct?
Yes to both, if programmed correctly.