Search found 4750 matches

by bartbes
Thu Nov 23, 2017 3:56 pm
Forum: Support and Development
Topic: demand() on channel from errorneous thread -> deadlock
Replies: 2
Views: 34

Re: demand() on channel from errorneous thread -> deadlock

I believe this is because the main thread reaches channel:demand() before the thread encounters the error. The main thread is now blocked, waiting for data on the channel; the thread can't supply data because of the error; love.threaderror doesn't get called because the main thread is blocked. Tota...
by bartbes
Tue Nov 21, 2017 11:09 am
Forum: Support and Development
Topic: multiple function arguments
Replies: 4
Views: 162

Re: multiple function arguments

The problem is that you can only have varargs as the last argument(s). So if you rewrite your function like this, it won't error: function poly(color, ...) local edges = {...} end (Note that color is already a local, as it is an argument, so 'local color = color' doesn't actually do anything useful.)
by bartbes
Mon Nov 20, 2017 10:27 pm
Forum: Support and Development
Topic: Integrate Torch7 into LÖVE?
Replies: 1
Views: 87

Re: Integrate Torch7 into LÖVE?

I don't think you need to compile torch into love, just stick the dll (compiled for lua 5.1) next to the exe and require torch.
by bartbes
Mon Nov 20, 2017 10:02 am
Forum: Support and Development
Topic: [Linux - KDE neon]LOVE Does Strange Things to KWin
Replies: 3
Views: 129

Re: [Linux - KDE neon]LOVE Does Strange Things to KWin

I did some googling and came across this forum post. Is your compositor backend set to OpenGL 2.0, and if so, can you try setting it to OpenGL 3.1?
by bartbes
Sun Nov 19, 2017 10:02 pm
Forum: Support and Development
Topic: [Linux - KDE neon]LOVE Does Strange Things to KWin
Replies: 3
Views: 129

Re: [Linux - KDE neon]LOVE Does Strange Things to KWin

The shadows for my KDE panels disappear, [...] and it looks like some windows have a black square being rendered behind them. So it sounds like it's your compositor that breaks, somehow. In case you don't know, the compositor is the part of the (x11) graphics stack that implements transparent windo...
by bartbes
Sun Nov 19, 2017 4:39 pm
Forum: General
Topic: Mixins, Composition, and Inheritance Guidelines
Replies: 6
Views: 234

Re: Mixins, Composition, and Inheritance Guidelines

Please don't double (or triple) post.
by bartbes
Sun Nov 12, 2017 11:31 am
Forum: Support and Development
Topic: Coloring a spriteBatch sprite
Replies: 4
Views: 134

Re: Coloring a spriteBatch sprite

Like love.graphics.setColor does without SpriteBatches, SpriteBatch:setColor affects the colour of the sprites added after the call.
by bartbes
Sun Nov 12, 2017 10:20 am
Forum: General
Topic: Local iterator functions slower than global?
Replies: 14
Views: 584

Re: Local iterator functions slower than global?

But as was explained above, that's because the iterators specifically have special codepaths that are apparently sensitive to the function name. We have also seen that if you name the locals the same, it does have a (very small) positive effect. Anyway, it seems like the moral of the story, as ever,...
by bartbes
Sat Nov 11, 2017 12:20 pm
Forum: Support and Development
Topic: cut out a part of a screen and draw it
Replies: 3
Views: 124

Re: cut out a part of a screen and draw it

If you just want to draw it, can't you just the entire screen to a Canvas when you want to create the "screenshot", then draw part of that Canvas with a Quad?
by bartbes
Fri Nov 10, 2017 5:10 pm
Forum: Support and Development
Topic: loading from love filesystem issue
Replies: 5
Views: 170

Re: loading from love filesystem issue

If you just want one string containing all of the file's contents you can just use love.filesystem.read. Alternatively, if you want to iterate over all lines, there is love.filesystem.lines. Lastly, if you need something more complex you can create a File object and read it that way.