Search found 6 matches

by fluffy
Mon Aug 27, 2018 11:03 pm
Forum: Support and Development
Topic: Any way to determine the vsync wait time?
Replies: 3
Views: 1091

Any way to determine the vsync wait time?

tl;dr: I want to determine approximately how much rendering headroom time I have. Quite some time ago I implemented an adaptive resolution mechanism to adjust the render quality on the fly based on GPU load. However, the big problem with it is that when vsync is on it's difficult to determine how mu...
by fluffy
Thu May 17, 2018 12:22 am
Forum: General
Topic: LÖVE 11.1 released!
Replies: 41
Views: 57187

Re: LÖVE 11.1 released!

I'm aware of that, but this is for distribution on itch.io and Steam.

Anyway, I ended up making a wrapper script that calls the correct AppImage bundle and the .love file so that I can have a "universal" distribution.
by fluffy
Wed May 16, 2018 10:10 pm
Forum: General
Topic: LÖVE 11.1 released!
Replies: 41
Views: 57187

Re: LÖVE 11.1 released!

Is there a way of bundling my .love file into the AppImage bundle, the same way that I can bundle my .love file into the Windows executable or the macOS .app? I'm excited for the possibility of finally having a standalone Linux release!
by fluffy
Thu Feb 01, 2018 8:49 am
Forum: Support and Development
Topic: Using modf in shader
Replies: 11
Views: 1177

Re: Using modf in shader

Another modf that might be more performant:

Code: Select all

float _modf(float a, float b) {
    return b*fract(a/b);
}
by fluffy
Wed Jan 31, 2018 9:48 am
Forum: Support and Development
Topic: HighDPI issue on 0.10.2 / MacOS 10.13
Replies: 1
Views: 315

Re: HighDPI issue on 0.10.2 / MacOS 10.13

After banging away on this a bit more I found love.window.getPixelScale() and that seems to work correctly. Using that function also has the nice benefit of cleaning up a bunch of my code anyway, so I'll just switch to using that! The highdpi flag does still seem like a bug but love.window.getPixelS...
by fluffy
Wed Jan 31, 2018 6:46 am
Forum: Support and Development
Topic: HighDPI issue on 0.10.2 / MacOS 10.13
Replies: 1
Views: 315

HighDPI issue on 0.10.2 / MacOS 10.13

Hi, I'm using this bit of code to try to determine if the display is highdpi or not: love.window.setMode(config.width, config.height, { resizable = true, fullscreen = config.fullscreen, vsync = config.vsync, highdpi = config.highdpi, minwidth = 480, minheight = 480 }) local _, _, flags = love.window...