Search found 41 matches

by NÖÖB
Sun Mar 06, 2011 3:58 pm
Forum: General
Topic: How to cache drawing operations?
Replies: 5
Views: 3457

Re: How to cache drawing operations?

Here's another example of drawing to an image:
http://love2d.org/forums/viewtopic.php?f=5&t=2576
by NÖÖB
Fri Mar 04, 2011 12:08 am
Forum: Libraries and Tools
Topic: Per-pixel plasma / copperbars
Replies: 12
Views: 7024

Re: Per-pixel plasma / copperbars

That may be because I changed the frame limiting code. Try using the same love.update function from your example. In the best case, I'm getting around the same fps for both versions (between 27-32). Yeah, that did it; getting 14FPS on your version now :) @Technocat: woah! :awesome: You need the pre...
by NÖÖB
Thu Mar 03, 2011 11:55 pm
Forum: Libraries and Tools
Topic: Per-pixel plasma / copperbars
Replies: 12
Views: 7024

Re: Per-pixel plasma / copperbars

Thanks for the heads up on the pixBuf!
I just read on another thread that framebuffers may not work on some computers.. I dunno - I tried your version of the program, and the framebuffer works here on an intel GMA4500 integrated card, although it ran a bit slower than mine; 7FPS vs 20FPS
by NÖÖB
Thu Mar 03, 2011 11:38 pm
Forum: Libraries and Tools
Topic: Per-pixel plasma / copperbars
Replies: 12
Views: 7024

Re: Per-pixel plasma / copperbars

Well, yeah..
What FPS were you getting? I get 20FPS on my Acer AS3810t
by NÖÖB
Thu Mar 03, 2011 10:53 pm
Forum: Libraries and Tools
Topic: Per-pixel plasma / copperbars
Replies: 12
Views: 7024

Per-pixel plasma / copperbars

Branching off my previous topic http://love2d.org/forums/viewtopic.php?f=4&t=2547 about per pixel manipulation speed; after taking into consideration that framebuffers won't work on all computers, I looked into the newImageData function to use that as a sort of buffer. It's not fast, but at leas...
by NÖÖB
Thu Feb 24, 2011 6:34 pm
Forum: Support and Development
Topic: Am I doing it wrong? - filling screen with pixels
Replies: 7
Views: 2763

Re: Am I doing it wrong? - filling screen with pixels

Yeah, I forgot to mention that this was a speed test for pixel manipulation. I wanted to try and make a mode7 routine (http://en.wikipedia.org/wiki/Mode_7)
by NÖÖB
Thu Feb 24, 2011 6:08 pm
Forum: Support and Development
Topic: Am I doing it wrong? - filling screen with pixels
Replies: 7
Views: 2763

Am I doing it wrong? - filling screen with pixels

Hey people, here's my first ever lua program: function love.draw() for ky = 0, 239 do for kx = 0, 319 do love.graphics.point( kx, ky ) end end love.graphics.print("FPS: " .. love.timer.getFPS(), 50, 350) end Just filling a 320 x 240 section of the screen with pixels, and it's very slow; ge...
by NÖÖB
Mon Feb 21, 2011 12:29 am
Forum: Support and Development
Topic: love.sound - examples?
Replies: 4
Views: 1535

Re: love.sound - examples?

Hey, thanks for answering ^^
Do you have to use "file.xxx"? Or is it possible to fill data with values of varying amplitude, approximating a sine, or triangle waveform, and then play that data in memory?
by NÖÖB
Sun Feb 20, 2011 10:45 pm
Forum: Support and Development
Topic: love.sound - examples?
Replies: 4
Views: 1535

love.sound - examples?

I'm reading the wiki on love.sound and its types and functions, but I can't wrap my head around it.. I'm under the assumption that it'll let me create sound data in code, and then stream it through a decoder, resulting in -say, a sine wave coming out of my speakers. Can anyone provide examples on lo...
by NÖÖB
Fri Aug 01, 2008 9:15 pm
Forum: General
Topic: love.audio
Replies: 13
Views: 13466

Re: love.audio

It'd be really cool if we could send data to the buffer, making sounds on the fly.. hm, or maybe not. Anyways, here's an article explaining it: http://www.gamedev.net/reference/articl ... le1348.asp
Also, looks like OpenALSoft's got a lowpass filter and reverb.. those would be nice.