Using Love for an application which isn't a game
Re: Using Love for an application which isn't a game
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
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.pgimeno wrote:Unfortunately, Love doesn't receive expose (redraw) events. This means that you still have at least to redraw a canvas every frame.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Using Love for an application which isn't a game
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
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
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?
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
Yes to both, if programmed correctly.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?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Who is online
Users browsing this forum: No registered users and 3 guests