Search found 57 matches

by bizziboi
Fri Dec 05, 2014 6:14 am
Forum: Support and Development
Topic: Passing a table to a shader
Replies: 9
Views: 10315

Re: Passing a table to a shader

I am not sure why you feel using a texture is overkill. When you pass a texture you a) Give the shader something it's made to work with and work with fast b) Only use up one shader parameter slot When you pass 600 values a) I think you can't do that. Are there that many parameter slots? b) Regardles...
by bizziboi
Mon Nov 03, 2014 6:09 am
Forum: Support and Development
Topic: Best way to do multi layered parallaxing? (performance!)
Replies: 8
Views: 3466

Re: Best way to do multi layered parallaxing? (performance!)

Couple of things. - The suggestion to cut your image into a mesh that only (approximately) draws the parts that have actual pixels, should give a nice increase as all the transparent pixels still need to be read, alpha tested and rejected, which is a waste of GPU cycles. - Try encoding your image as...
by bizziboi
Mon Apr 28, 2014 7:15 am
Forum: Support and Development
Topic: yet another collision question thread.
Replies: 12
Views: 6212

Re: yet another collision question thread.

I haven't looked at the source, but if you are going up and hit your head you should set the y velocity to zero *if it's greater than zero, not if it's less'. Otherwise gravity won't be able to make you fall, as you keep negating it's effect by killing vertical velocity - you want to kill upward vel...
by bizziboi
Thu Apr 24, 2014 8:12 pm
Forum: Support and Development
Topic: Serious Memory Issues while loading Images
Replies: 10
Views: 9406

Re: Serious Memory Issues while loading Images

If you convert the images to DDS they will be a bit faster to load and use less memory - you could give that a shot.
by bizziboi
Sat Feb 22, 2014 7:12 am
Forum: Support and Development
Topic: [Help] Can i play videos on my LÖVE game?
Replies: 2
Views: 1857

Re: [Help] Can i play videos on my LÖVE game?

Love 0.9 uses LuaJit, this means you can use the FFI to call functions in dynamic libraries, so if you're really so inclined you could. But you'd be leaving love territory and it's a cold hard world out there!
by bizziboi
Fri Jan 10, 2014 12:06 am
Forum: Support and Development
Topic: Scaling love.graphics geometric shapes like bitmap pics?
Replies: 19
Views: 10818

Re: Scaling love.graphics geometric shapes like bitmap pics?

With a pre-rendered image of a horizontal (or whatever) line? This doesn't work; love.graphics.rotate doesn't pixellate (result is similar to the white line in the first post). You already have a solution, but I still think this would have worked - you'd use a lower res texture for the line image a...
by bizziboi
Thu Jan 09, 2014 3:45 am
Forum: Support and Development
Topic: Scaling love.graphics geometric shapes like bitmap pics?
Replies: 19
Views: 10818

Re: Scaling love.graphics geometric shapes like bitmap pics?

Alternatively, make a sprite of a line and scale and rotate it to match desired begin and end position. To get similar pixelation for short and long lines you could make a long line sprite and only draw a part of it that is sized relative to the length of the desired line segment. Hope you paid atte...
by bizziboi
Tue Dec 24, 2013 6:26 am
Forum: Support and Development
Topic: Readability improvement suggestions for the wiki
Replies: 4
Views: 2326

Re: Readability improvement suggestions for the wiki

Except that multiple people have suggested it is hard to read so that might mean the design is elegant but perhaps not from a usability point of view, which is part of elegance imo. Form should never overtake function in something that is first and foremost meant to be functional - one Phillipe Star...
by bizziboi
Tue Dec 24, 2013 12:23 am
Forum: Support and Development
Topic: 0.9.0 resource/mem leak with DDS?
Replies: 4
Views: 1915

Re: 0.9.0 resource/mem leak with DDS?

The problem is that I needed to allocate several gigabyte (actually it was 1.3 gig of unique image data. Game jams tend to lead to such crazyness). In a real life scenario I can easily work around it, but it was the leak (memory or resource, indeed hard to tell) that worried me. Like I said, I'll tr...
by bizziboi
Mon Dec 23, 2013 11:56 pm
Forum: Support and Development
Topic: 0.9.0 resource/mem leak with DDS?
Replies: 4
Views: 1915

Re: 0.9.0 resource/mem leak with DDS?

Thanks for the heads up, but I am aware of reusing the image data, but it was not what I was trying to test. *But it's besides the point.* Fact is, if I create PNGs till memory is exhausted, then destroy them all, and then try again I can create the same number of PNGs. If I create DDS's till memory...