Retain screen without love.draw and canvas
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Retain screen without love.draw and canvas
It seems even if I copy love.run from source code and remove love.graphics.clear from code, the screen still loses after I minimize the window.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Retain screen without love.draw and canvas
Yes, GPUs and drivers and window managers are not designed to be used like that.
Re: Retain screen without love.draw and canvas
So my best bet is canvas?
Re: Retain screen without love.draw and canvas
Just redraw your screen.
Re: Retain screen without love.draw and canvas
OK.
I just thought it sometimes has thousands of print call since it a text and grid based interface.
I just thought it sometimes has thousands of print call since it a text and grid based interface.
Re: Retain screen without love.draw and canvas
Roguelike, eh? Create a spritesheet with letters in it, and use spritebatch to render the map.
Re: Retain screen without love.draw and canvas
Yeah, I'll try. Thanks.
Re: Retain screen without love.draw and canvas
Besides spritebatches, canvas is a natural and efficient solution to the problem. The main downside is, that canvases are not supported by all types of graphics cards. If you want to be sure that everyone can run your game, try to avoid canvases or make it optional.utunnels wrote:So my best bet is canvas?
Check out my blog on gamedev
Who is online
Users browsing this forum: Bing [Bot] and 10 guests