Search found 3083 matches

by slime
Mon Jun 10, 2024 2:21 am
Forum: Support and Development
Topic: The rounded rectangle in fill mode has strong aliasing.
Replies: 4
Views: 255

Re: The rounded rectangle in fill mode has strong aliasing.

Lines have their own custom antialiasing/smoothing applied by default (the "smooth" line style) which is only for lines and not other things like images or filled shapes. To have antialiasing on filled shapes, two common approaches are to enable MSAA on the window or to draw a line shape a...
by slime
Sun May 26, 2024 3:03 am
Forum: General
Topic: Love2D should look into its android capabilities
Replies: 4
Views: 1007

Re: Love2D should look into its android capabilities

Isn't it know that LuaJit causes Android stuff to run reaallly slow and eventually freeze it? No - LuaJIT has an interpreter (several times faster than stock Lua 5.1) and a JIT compiler (sometimes 100x faster than stock Lua 5.1). When the JIT compiler is active it only decides to compile specific b...
by slime
Wed May 22, 2024 10:05 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 23
Views: 3541

Re: How do you really tell if your game has a memory leak?

In case anyone isn't aware, the reason love objects (or anything not entirely owned by Lua) don't get collected "quick enough" to avoid high memory use situations when you spam creation of them, is because Lua isn't able to know how much memory the object actually takes. love objects don't...
by slime
Wed May 15, 2024 2:51 am
Forum: General
Topic: Polygon is too bitmap.
Replies: 11
Views: 1739

Re: Polygon is too bitmap.

What does @slime think? As-is, people who use nearest talk about setFilter / setDefaultFilter. And people who use linear don't. So just listening to who's talking about it won't tell you how many people are using each mode. :) Both have valid uses for different art / aesthetic styles. Personally I ...
by slime
Tue May 07, 2024 7:47 pm
Forum: Support and Development
Topic: Garbage Collector and FFI
Replies: 23
Views: 3173

Re: Garbage Collector and FFI

The objects can just be garbage collected because they're recognized as not being used in the future And how can I change that? Reference/use the object after you've used the FFI pointer. See https://luajit.org/ext_ffi_semantics.html#gc for some details. We can only throw guesses at the wall with h...
by slime
Tue May 07, 2024 5:36 pm
Forum: Support and Development
Topic: Garbage Collector and FFI
Replies: 23
Views: 3173

Re: Garbage Collector and FFI

The objects can just be garbage collected because they're recognized as not being used in the future, they don't have to be manually deleted for the GC to clean them up. Also make sure you're using zero-based indexing with FFI arrays. We can only throw guesses at the wall with how little information...
by slime
Tue May 07, 2024 4:45 pm
Forum: Support and Development
Topic: Garbage Collector and FFI
Replies: 23
Views: 3173

Re: Garbage Collector and FFI

Make sure the original memory allocations (for example the objects returned by love.image.newImageData in your first bit of code) are still accessible when the FFI pointers that point to their memory are used. Otherwise Lua may garbage-collect the original objects and free their memory while you're ...
by slime
Tue May 07, 2024 11:23 am
Forum: General
Topic: Love2D should look into its android capabilities
Replies: 4
Views: 1007

Re: Love2D should look into its android capabilities

(Too bad it doesn't seem like Love2D community Devs really care that an actual pretty famous game is made with Love2D, but that's besides the point) Balatro's great. It's also not nearly the first famous game made with LÖVE. :) If you're talking about the homepage, we just don't have active people ...
by slime
Sat May 04, 2024 2:40 am
Forum: Support and Development
Topic: fixture:setMask requiring two arguments
Replies: 6
Views: 1156

Re: fixture:setMask requiring two arguments

In the screenshot, VScode uses the same text as the wiki. Did they parse the wiki somehow or is that docu created by hand? Would it make sense to standardize the style a bit to make it more machine-readable? I believe it's a heavily modified edit of something that originated as a wiki scrape. I'm i...
by slime
Fri May 03, 2024 8:57 pm
Forum: Support and Development
Topic: fixture:setMask requiring two arguments
Replies: 6
Views: 1156

Re: fixture:setMask requiring two arguments

While the wiki could be more clear, updating it won't fix that vscode extension. Like dusoft said it's a separate and independently developed piece of software.