Search found 10 matches

by andras
Fri Jan 25, 2019 11:30 pm
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 1075

Re: Game uses 50MBs, still I get PANIC: (not enough memory)

I found the reason why I was retaining way too much memory. Totally my fault. I implemented time-rewind (a'la Braid) 5 years ago and forgot how much memory it takes to store the game state at every frame for the last 10 seconds. A little bit of optimization decreased my memory footprint fourfold, sh...
by andras
Fri Jan 25, 2019 7:57 pm
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 1075

Re: Game uses 50MBs, still I get PANIC: (not enough memory)

Do you mean like maybe I should only draw what's in the viewport? Quickly render the next canvas when the player starts scrolling off the current one? Maybe. Sometimes I zoom out and then I kinda need to show almost the whole canvas (scaled down). Maybe I could pre-draw a single big 0.5x resolution ...
by andras
Thu Jan 24, 2019 10:14 pm
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 1075

Re: Game uses 50MBs, still I get PANIC: (not enough memory)

Cool trick that, shadowing. I wrote a small module to trace all love functions starting with 'new'. It also prints the function arguments. local function trace(moduleName, mod, funcName, func) mod[funcName] = function(...) print(moduleName..'.'..funcName, ...) return func(...) end end for moduleName...
by andras
Thu Jan 24, 2019 5:47 pm
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 1075

Re: Game uses 50MBs, still I get PANIC: (not enough memory)

Thanks Grump! Good to know that LOVE objects reside outside of the lua heap, therefore not counted. I really hope that's the answer, although I have more than 100 matches for love.*.new* so it takes a while to check. It looks like I'm not doing it inside the update/draw loop, but it's hard to trace....
by andras
Thu Jan 24, 2019 1:02 pm
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 1075

Game uses 50MBs, still I get PANIC: (not enough memory)

My game is getting big, I am using three 1500x10000 canvases for the background, and several particle systems. Since I started doing this, I'm getting random crashes with no output to the console and sometimes crashes with this output: Mem (MB) 56.4 Mem (MB) 52.5 PANIC: unprotected error in call to ...
by andras
Sat Dec 22, 2018 5:21 pm
Forum: Support and Development
Topic: Where do I put external c libs? (luasec on macOS)
Replies: 2
Views: 416

Re: Where do I put external c libs? (luasec on macOS)

Thank you, I got it working. It tried to load several other submodules too, so I had to pre-load them as well. local base = love.filesystem.getSourceBaseDirectory() for _, mod in pairs({'core', 'context', 'config', 'x509'}) do package.preload['ssl.'..mod] = package.loadlib(base..'/ssl.so', 'luaopen_...
by andras
Fri Dec 21, 2018 3:01 pm
Forum: Support and Development
Topic: Where do I put external c libs? (luasec on macOS)
Replies: 2
Views: 416

Where do I put external c libs? (luasec on macOS)

Hi there, I'd like to send HTTPS requests out of my game. I gather from the forums that I need luasec for that. OK, I acquired luasec via luarocks, it is installed here on my machine: /usr/local/share/lua/5.1/ssl.lua /usr/local/share/lua/5.1/ssl/https.lua /usr/local/lib/lua/5.1/ssl.so I can now send...
by andras
Mon Nov 12, 2018 4:13 pm
Forum: Support and Development
Topic: joystickpressed is called, but gamepadpressed is not called (Logitech f310)
Replies: 1
Views: 492

Re: joystickpressed is called, but gamepadpressed is not called (Logitech f310)

Nevermind, I figured out how this is supposed to work. My Logitech F310 gamepad must be a new make or something as its GUID wasn't included in the de facto standard gamecontrollerdb.txt https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt So love2d didn't recogn...
by andras
Mon Nov 12, 2018 1:21 pm
Forum: Support and Development
Topic: joystickpressed is called, but gamepadpressed is not called (Logitech f310)
Replies: 1
Views: 492

joystickpressed is called, but gamepadpressed is not called (Logitech f310)

Hello there! I recently added controller support to my game which was a breeze with the baton library. Worked great with an official XBox 360 controller. So I bought a Logitech F310 controller, which is pretty much the same thing. The joystick is registered and everything, it claims to be a "Xbox 36...
by andras
Thu Jun 14, 2018 1:29 pm
Forum: Support and Development
Topic: Reverse particle system
Replies: 0
Views: 691

Reverse particle system

Hi there, Is it possible to play a particle system in reverse, so that instead of emitting particles from a point and having them accelerated all over the place, the particles are attracted to a single target? Kind of like a particle system played backwards. I tried pSystem:update(-dt) without luck....