Search found 155 matches

by szensk
Tue Apr 21, 2015 7:00 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411779

Re: "Questions that don't deserve their own thread" thread

Can anybody gimme some general tips about optimization that I can keep handy? 1) Fast algorithms: don't use an O(n^2) when there is an O(n log n) algorithm out there. 2) Spritebatches: the reduced draw calls improves performance greatly. 3) Don't use pairs() unless you must. 4) Use locals: this is ...
by szensk
Wed Apr 15, 2015 10:59 pm
Forum: General
Topic: Questions about Löve's source code structure
Replies: 32
Views: 5695

Re: Questions about Löve's source code structure

Given that .wav works, I'd suspect the VorbisDecoder. Have you tried logging a few samples from the SoundData? Compare some random sample on ARM to the same sample on x86. If the underlying samples are different, then it's probably the decoder. If they are the same, there is some other problem.
by szensk
Wed Apr 15, 2015 10:19 pm
Forum: Ports
Topic: [Obsolete] LöveFTW progress thread
Replies: 22
Views: 17537

Re: LöveFTW progress thread

WP does support COM, including a subset of Win32 and Direct3D(9_3). Obviously, this what allowed T-Bone to use ANGLE (which implements OpenGL via Direct3D functions) to support Love. Secondly, it's not any slower than other ARM based platforms. Your compiled C++ code will be just as fast as on almos...
by szensk
Tue Apr 14, 2015 5:42 am
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 53363

Re: Small Useful Functions

Very cool.

nit: Reduces parameter 'zero' should, for clarity, be called something like 'initial'. It is necessary for 'zero' to have a value other than 0 (for example: product) which must be why you have it as a parameter. That's a bit of unexpected value for 'zero', yea?
by szensk
Sun Apr 12, 2015 2:35 am
Forum: General
Topic: Need Help Naming a Norse-themed Game!
Replies: 7
Views: 5654

Re: Need Help Naming a Norse-themed Game!

Mækir

which is a heiti for sword (normally sverð).
by szensk
Fri Apr 10, 2015 4:23 pm
Forum: General
Topic: Batching for rectangles, points, lines?
Replies: 9
Views: 3773

Re: Batching for rectangles, points, lines?

Because in the situation that I need to use rects in, that's still slower. I wouldn't be asking for a pointbatch if I didn't know what I was talking about. OK then. What's the issue with a sprite batch of a 1x1 image with the width + height of the rectangle as scale? It works fine for many thousand...
by szensk
Fri Apr 10, 2015 2:29 pm
Forum: General
Topic: Batching for rectangles, points, lines?
Replies: 9
Views: 3773

Re: Batching for rectangles, points, lines?

Why not draw to a canvas and only redraw to the canvas when the GUI layout changes?

You can batch rectangles & lines really easily: add a 1x1 pixel image with the desired width/height/rotation to a spritebatch.
by szensk
Fri Apr 10, 2015 5:14 am
Forum: Support and Development
Topic: [SOLVED] what....
Replies: 16
Views: 5362

Re: what....

Also what's your current error? "Still doesn't work" is descriptive.

The file `mcgood (mcgoodsteak7).png` should be named `mcgood (mcgoodstreak7).png`. At least, that's what the code expects. After that I get no errors with your current main.lua.
by szensk
Thu Apr 09, 2015 4:04 am
Forum: Support and Development
Topic: [SOLVED] what....
Replies: 16
Views: 5362

Re: what....

The chunk you posted is perfectly valid. The error originates further up.
by szensk
Wed Apr 08, 2015 9:13 pm
Forum: Support and Development
Topic: Unexpected error! Please help!
Replies: 2
Views: 1468

Re: Unexpected error! Please help!

You need to call world.loadGraphics, where pauseButton is loaded, some time before the first time love.draw() is called. For example, this doesn't crash: function love.load() gravity = 30 platformBottom = love.graphics.getHeight() - ( love.graphics.getHeight() / 4 ) world.load() player.load() world....