Search found 580 matches

by grump
Wed Aug 14, 2019 6:25 pm
Forum: General
Topic: Building a Free Library of Images for Everyone
Replies: 111
Views: 100202

Re: Building a Free Library of Images for Everyone

Dear Eric Matyas, I totally understand that you want your stuff to be seen by as many people as possible. But I still feel that updating mulitple threads on the same forum, with the same content that isn't even related to LÖVE in any particular way, is akin to spamming. Would you please limit your u...
by grump
Thu Aug 01, 2019 2:18 pm
Forum: Libraries and Tools
Topic: Metaballs
Replies: 4
Views: 542

Re: Metaballs

Looks nice! I played around with it for a bit and made some optimizations. The calculation is now done in a shader, and the texture is not recreated every frame. It's quickly hacked in though, so the code is far from optimal and not very pretty. ;)
by grump
Thu Aug 01, 2019 11:41 am
Forum: Support and Development
Topic: Get available video memory value
Replies: 6
Views: 862

Re: Get available video memory value

Did not checked the texture creation fail, but canvas creation works "fine" when the limit is exceeded. But cpu memory consumption is increasing and fps drops to ~5 or something: (Some) GPU drivers implement memory swapping between GPU and main RAM, so you can use more GPU memory than available at ...
by grump
Sat Jul 20, 2019 10:33 am
Forum: Support and Development
Topic: Trace a curve which pass through all of the points.
Replies: 8
Views: 616

Re: Trace a curve which pass through all of the points.

Use Catmull-Rom instead of Bezier splines.
by grump
Wed Jun 26, 2019 8:02 pm
Forum: Support and Development
Topic: Need help with FFI on 32 vs 64-bit versions of Love2d 11.2
Replies: 7
Views: 5470

Re: Need help with FFI on 32 vs 64-bit versions of Love2d 11.2

ivan wrote:
Wed Jun 26, 2019 1:31 pm
I'm trying to cast a void pointer there
I see. Please disregard my comment, I wasn't reading the code properly.
by grump
Tue Jun 25, 2019 5:11 pm
Forum: Support and Development
Topic: Need help with FFI on 32 vs 64-bit versions of Love2d 11.2
Replies: 7
Views: 5470

Re: Need help with FFI on 32 vs 64-bit versions of Love2d 11.2

Have you tried to run it on a "real" 32 bit OS? Maybe it's a pointer size issue. Just guessing though. It's probably not relevant to your problem, but I'm pretty sure the cast from <event> to <event>* is not required. local ffi = require('ffi') ffi.cdef("typedef struct Blah { int i; };") local b = f...
by grump
Thu Jun 20, 2019 12:48 pm
Forum: Support and Development
Topic: A question about music
Replies: 13
Views: 5920

Re: A question about music

raidho36 wrote:
Thu Jun 20, 2019 5:50 am
Yeesh, that guy's a grump allright.
Wut? Nah. A grumpy response would have been a link to How To Ask Questions The Smart Way without further comment. Also, please don't assume my gender.
by grump
Wed Jun 19, 2019 6:48 pm
Forum: Support and Development
Topic: A question about music
Replies: 13
Views: 5920

Re: A question about music

math.randomseed( os.time() ) math.random(); math.random(); math.random(); math.random(); math.random() lmao I put the code into love_update() and nothing is playing now. This neither works when I have it in a separate .lua file nor in main.lua. This would be the perfect time to post the exact code ...
by grump
Fri Jun 14, 2019 5:40 pm
Forum: General
Topic: Collision Editor not working as expected
Replies: 7
Views: 1772

Re: Collision Editor not working as expected

2lostsouls wrote:
Fri Jun 14, 2019 4:50 pm
not anyone is answering and I think it may be because I did not explain this properly. I used the collision editor
One reason for that might be that there's no such thing as a "collision editor" in love.
by grump
Sat Jun 08, 2019 12:11 pm
Forum: Support and Development
Topic: [SOLVED] Dynamically create methods for a class.
Replies: 3
Views: 819

Re: Dynamically create methods for a class.

I'm sorry, I can't help with the middleclass stuff, just a note: This forEach construct for arrays is tempting to implement and looks clean, but be aware that it incurs a performance penalty in most cases. Callbacks like this are slower than loops and iterators in LuaJIT, and creating anonymous func...