Search found 34 matches

by Bananicorn
Wed Jan 02, 2019 10:23 am
Forum: Support and Development
Topic: [SOLVED]canvases come up empty on windows
Replies: 5
Views: 3321

[SOLVED]canvases come up empty on windows

Hello fellow Lövers! It's me again, and my neverending confusion with canvases. This problem only affects windows (and wine) as far as I know. When creating canvases and drawing to them, sometimes it seems like the gpu can't catch up with the rest of the program and just leaves the canvas empty. Thi...
by Bananicorn
Wed Dec 19, 2018 8:31 pm
Forum: Support and Development
Topic: [solved] flickering when not redrawing every frame
Replies: 10
Views: 3800

Re: [solved] flickering when not redrawing every frame

Yeah, it may not make any difference depending on the driver. I don't note any either. But I can tell you that I have serious FPS problems (under 30 FPS) on the RPi3 when I draw something with alpha, so the blending mode may matter in some architectures. Now you got me curious - I'm gonna try some ...
by Bananicorn
Wed Dec 19, 2018 7:39 pm
Forum: Support and Development
Topic: [solved] flickering when not redrawing every frame
Replies: 10
Views: 3800

Re: [solved] flickering when not redrawing every frame

If the canvas overwrites the whole screen, you don't need to call clear, so in a sense, that method allows you that optimization. And I don't know for sure, but maybe blending method "replace" is faster than the others. (premature optimization may be the root of all evil, but it's also he...
by Bananicorn
Wed Dec 19, 2018 5:27 pm
Forum: Support and Development
Topic: [solved] flickering when not redrawing every frame
Replies: 10
Views: 3800

Re: flickering when not redrawing every frame

Even if you do that to account for double/triple buffering, the window manager may trash the contents of the window's frame buffers at any time (for example if you move another window over the LÖVE window, and then move it away). It's much more robust to just draw to a Canvas and then redraw that e...
by Bananicorn
Wed Dec 19, 2018 4:14 pm
Forum: Support and Development
Topic: [solved] flickering when not redrawing every frame
Replies: 10
Views: 3800

Re: flickering when not redrawing every frame

You forgot to attach the love file. if love.load then love.load(love.arg.parseGameArguments(arg), arg) end Huh, I didn't know about love.arg. It's not even documented, but seems handy. Thank you for posting this :) Thanks for pointing that out - I could've sworn I attached it - but, well... I didn'...
by Bananicorn
Wed Dec 19, 2018 3:55 pm
Forum: Support and Development
Topic: [solved] flickering when not redrawing every frame
Replies: 10
Views: 3800

[solved] flickering when not redrawing every frame

Hey Lövers :) To preface this: I know ways to work around this, like using a canvas to store the entire screen and drawing that each time, setting the BackgroundColor to this color, or simply redrawing the background every time, but that's not what I'm asking - I'm wondering why Löve behaves as it d...
by Bananicorn
Thu Nov 22, 2018 2:43 pm
Forum: Support and Development
Topic: Canvas problem with release
Replies: 2
Views: 1010

Re: Canvas problem with release

Okay, first pointer is that it's wasteful to release and recreate those canvases each frame... why exactly are you doing that? Okay, sorry I wasn't too clear on that - my actual problem is in another program, but this demonstrates the principle behind it. In my actual program I have to "resize...
by Bananicorn
Thu Nov 22, 2018 2:07 pm
Forum: Support and Development
Topic: Canvas problem with release
Replies: 2
Views: 1010

Canvas problem with release

Okay, so here's my problem, it currently only occurs in wine, I couldn't yet test it on actual windows. If I have a canvas which I release, re-create, redraw and then draw to screen in the same frame, it seems to not make it in time, thus being rendered empty... This isn't a huge problem if this can...
by Bananicorn
Thu Nov 08, 2018 11:17 am
Forum: Support and Development
Topic: Canvas sometimes renders empty
Replies: 5
Views: 1988

Re: Canvas sometimes renders empty

You're very welcome :) I enjoy helping when people make it easy, and you provided your project, which is the best way to be able to reproduce the problem. People often have a concept of where the problem is, that differs from where it actually is, and don't provide enough data to diagnose the probl...
by Bananicorn
Sat Oct 27, 2018 6:32 am
Forum: Support and Development
Topic: Canvas sometimes renders empty
Replies: 5
Views: 1988

Re: Canvas sometimes renders empty

I can't believe I forgot to reset the color!
Well, actually I can, thank you very much! :)

Btw, is there anywhere I can buy you a coffe or something? Thank you SO much for taking your time :)