Search found 2857 matches

by slime
Sun Jan 17, 2021 5:35 am
Forum: Support and Development
Topic: Handling POSIX Signals
Replies: 6
Views: 399

Re: Handling POSIX Signals

What do you plan to use it for? Does the love.quit callback at least partially cover your use case?
by slime
Mon Jan 04, 2021 11:32 pm
Forum: Support and Development
Topic: Love2d stops running after awhile
Replies: 43
Views: 9610

Re: Love2d stops running after awhile

I'm not sure I'm fully parsing the sentence, but love.lowmemory is never guaranteed to be called - mobile operating systems just send it as a "you're already too late but here's what's going on" kind of warning and it may or may not be read before the OS terminates the app (especially if lots of mem...
by slime
Sat Jan 02, 2021 3:13 pm
Forum: Support and Development
Topic: How to get the covered area?
Replies: 4
Views: 1850

Re: How to get the covered area?

1. How to get the size of this cover ribbon? love.window.getSafeArea should get the screen area not covered by the bar I think - if not, there might be issues within SDL that the upcoming love 11.4 release might fix. 2. Why getPixelDimensions are not same as getDimensions? DPI scaling (which as per...
by slime
Thu Dec 31, 2020 12:34 am
Forum: Support and Development
Topic: Windows global scale
Replies: 4
Views: 1498

Re: Windows global scale

The highdpi flag is supported on macOS, iOS, and I believe on Linux if Wayland is used. On Android it's effectively always enabled. On Windows, unfortunately SDL doesn't support it yet. What that means is the OS doesn't treat the app as being aware of DPI scaling, so Windows will scale the final out...
by slime
Mon Dec 28, 2020 8:26 pm
Forum: Support and Development
Topic: Love2d stops running after awhile
Replies: 43
Views: 9610

Re: Love2d stops running after awhile

At this point I don't think anyone will be able to guess what your code is doing wrong without being able to see and run it in its entirety. People want to help but you're making it hard to do so. One thing (among many) that you can do on your own would be to look at how much resources (RAM, VRAM, e...
by slime
Mon Dec 28, 2020 6:05 pm
Forum: General
Topic: Canvas support 99% ?
Replies: 5
Views: 2772

Re: Canvas support 99% ?

love theoretically supports iOS 8 and newer, but the iOS App Store might only let you (or any app developer) deploy to iOS 9 and newer. macOS and Windows requirements are mostly listed on the front page (macOS 10.7+, Windows Vista+) - love requires at least OpenGL ES 2 or OpenGL 2 on all platforms, ...
by slime
Mon Dec 28, 2020 4:04 pm
Forum: General
Topic: Canvas support 99% ?
Replies: 5
Views: 2772

Re: Canvas support 99% ?

Canvases have guaranteed support on all systems that can run LÖVE, in version 0.10 and newer. Now I did ask this question, are there other functions that are not supported for all systems so I can try to avoid them ? There are a few – see the GraphicsFeature , love.graphics.getTextureType , love.gra...
by slime
Sun Dec 27, 2020 12:54 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 18063

Re: Optimization Stuff

You shouldn't leave the garbage collector enabled in a game, at all. You should collectgarbage("stop") and manually collectgarbage() only when appropriate (like level transitions). You should create all the tables you're going to need during initialization, and not create any during gameplay. Remem...
by slime
Fri Dec 25, 2020 1:19 am
Forum: Support and Development
Topic: Question about LuaJIT and FFI
Replies: 10
Views: 5198

Re: Question about LuaJIT and FFI

One potential cause is some bit of code in your loop might be preventing the loop from being JIT compiled. Another potential cause is if the values in the FFI array are not stored as doubles, LuaJIT will have to convert between the storage format and double, which can hurt performance in an inner lo...
by slime
Wed Dec 23, 2020 1:21 am
Forum: Support and Development
Topic: I've used setDefaultFilter but the text is still too pixelated
Replies: 6
Views: 747

Re: I've used setDefaultFilter but the text is still too pixelated

Using mono font hinting might help:

Code: Select all

smallFont = love.graphics.newFont('HARRYP__.TTF', 25, "mono")