Search found 75 matches

by ReFreezed
Mon Jan 06, 2020 1:43 pm
Forum: Support and Development
Topic: Execution speed varies wildly (47x) between (but not during) runs
Replies: 15
Views: 831

Re: Execution speed varies wildly (47x) between (but not during) runs

I tested it and I seem to get similar inconsistency between different runs. Sometimes the test takes 0.008 seconds every time, sometimes they take 0.120 every time. I'm not sure this information will help with your situation in any way, and it may have nothing to do with the inconsistency, but in my...
by ReFreezed
Mon Jan 06, 2020 10:56 am
Forum: Libraries and Tools
Topic: Steamworks FFI
Replies: 6
Views: 1093

Re: Steamworks FFI

Nice, this is very useful!
by ReFreezed
Sat Aug 03, 2019 12:21 pm
Forum: Libraries and Tools
Topic: Another Lua Vector library
Replies: 14
Views: 5497

Re: Another Lua Vector library

If you really care about performance (maybe just in special areas of some innerloops where you need the best possible performance) you could easily localize the methods in question, shortcutting all the overhead described above and directly call them with your tables. I just want to add that the ab...
by ReFreezed
Fri Jul 26, 2019 9:31 am
Forum: Support and Development
Topic: Windows 32-bit OpenAL32.dll crashes
Replies: 3
Views: 2531

Re: Windows 32-bit OpenAL32.dll crashes

This would probably be good to report in the issue tracker: https://bitbucket.org/rude/love/issues

(Looking at the properties of the 11.2 love.exe reveals that the file version value is 11.1.0.0. I assume the LÖVE team just forgot to update the value when compiling the exe.)
by ReFreezed
Sun Jul 14, 2019 6:50 pm
Forum: Support and Development
Topic: Playing music with 2 sources
Replies: 5
Views: 1068

Re: Playing music with 2 sources

To make sure one sound is played exactly after another with no interruption you need to use a queueable source. (Your example actually plays seamlessly for me but that's just luck.)
by ReFreezed
Thu Jul 11, 2019 6:13 pm
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 9
Views: 6811

Re: LuaPreprocess

Cool! I read through it. There's one thing in step #4 I think is a bit confusing/misleading: //this is how to use the luapreprocess as a code block, remember the syntax ! to denote the start and end of the code block to be preprocessed An ! without a parenthesis simply means the rest of the line is ...
by ReFreezed
Thu Jun 27, 2019 7:35 am
Forum: Support and Development
Topic: Cannot create image (OpenGL error: invalid operation)
Replies: 2
Views: 10788

Re: Cannot create image (OpenGL error: invalid operation)

I'm not sure if it's the problem, but that image uses 16 bits per sample instead of the more common 8 bits.
by ReFreezed
Wed Jun 19, 2019 2:40 am
Forum: Support and Development
Topic: [HELP] Problem to understand how implement Joystick/Controller works
Replies: 1
Views: 2458

Re: [HELP] Problem to understand how implement Joystick/Controller works

joystick:getGamepadAxis() returns a number, not a boolean, which is why both prints trigger. Don't bother using love.joystickaxis() if you just want to know the current value of a joystick axis in love.update() - simply call joystick:getGamepadAxis() inside love.update(). love.joystickaxis() gets c...
by ReFreezed
Sun Jun 16, 2019 12:55 am
Forum: Support and Development
Topic: What are the names of RT/LT/RB/LB buttons for Love 2D ?
Replies: 4
Views: 2464

Re: What are the names of RT/LT/RB/LB buttons for Love 2D ?

If joystick:isGamepad() returns false then you'll need to bind buttons/axes using setGamepadMapping() before any of the gamepad methods will work.