Search found 69 matches

by Rad3k
Sat Sep 10, 2011 9:26 pm
Forum: General
Topic: Sandboxing (poll)
Replies: 83
Views: 40553

Re: Sandboxing (poll)

Also see SELÖVE. Yes, I know about SELÖVE. You make it pretty hard not to know about it :P In fact, it inspired me to resurrect this thread in the first place ;) I was more curious about what do you think about the idea I presented (SELÖVE could be one part of the solution). Initial question was wh...
by Rad3k
Sat Sep 10, 2011 2:47 pm
Forum: Support and Development
Topic: Measuring Lua performance
Replies: 7
Views: 6266

Re: Measuring Lua performance

vrld wrote: os.clock() measures CPU time, so it's equivalent to the time command.
I didn't know about that - my bad, I should have checked it myself.
by Rad3k
Sat Sep 10, 2011 12:07 pm
Forum: General
Topic: Sandboxing (poll)
Replies: 83
Views: 40553

Re: Sandboxing (poll)

I know it's an ancient thread, but I think I've got an idea that has not yet been mentioned. If we could use LÖVE as Lua module, then the standard LÖVE executable could be sandboxed (possibly unbreakably). If people wanted to make an app, or something that requires more than the sandbox permits, the...
by Rad3k
Sat Sep 10, 2011 9:38 am
Forum: Support and Development
Topic: multi-threading or multi-processing?
Replies: 3
Views: 2475

Re: multi-threading or multi-processing?

I haven't used Löve threads yet, but if they're regular OS threads (most likely they are), then your OS is free to assign each thread a searate core, so using threads can give you an advantage on multi-core CPUs (or systems with multiple CPUs). I'm not sure what you mean by independent processes tho...
by Rad3k
Sat Sep 10, 2011 9:05 am
Forum: Games and Creations
Topic: Plazma
Replies: 17
Views: 6832

Re: Plazma

At first I had a difficulty dinstinguishing this shooting thing from the surroundings. Cool shooting effect, but looks a bit like it was shooting some liquid nitrogen gun ;)
by Rad3k
Fri Sep 09, 2011 7:37 pm
Forum: Support and Development
Topic: Measuring Lua performance
Replies: 7
Views: 6266

Re: Measuring Lua performance

One drawback of this approach is that it only tells you how much time passed between starting and finishing a certain task, but this can depend on what the other programs (and OS) are doing (edit: ignore this - not true). On Linux (maybe Mac too) you can use time command. It measures only the time ...
by Rad3k
Fri Sep 09, 2011 2:42 am
Forum: General
Topic: do i have to switch between .love and .zip files every time?
Replies: 12
Views: 4570

Re: do i have to switch between .love and .zip files every t

You can run your code just from a directory, it doesn't have to be zipped - I do this all the time when I'm working on something. But that's easy on Linux... If you're on Windows, you can try this doesn't work : 1. Unzip your .love into an empty directory 2. Place a shortcut to love (Löve executable...
by Rad3k
Thu Sep 08, 2011 9:04 pm
Forum: Support and Development
Topic: [help] Trying to learn Lua + LOVE doing tutorials
Replies: 13
Views: 5252

Re: [help] Trying to learn Lua + LOVE doing tutorials

All your drawing operations must be done inside love.draw() callback. Just like love.keypressed is called when Löve detects a key press, love.draw is called when Löve feels like drawing a frame. Fortunately, this usually happens many times a second ;)
by Rad3k
Thu Sep 08, 2011 10:53 am
Forum: Libraries and Tools
Topic: The Image Effect Giver
Replies: 31
Views: 10331

Re: The Image Effect Giver

You can save framebuffer's contents back to imagedata (with :getImageData), so I don't see why framebuffers (combined with shaders) couldn't (or shouldn't) be used for image effects, if this would speed up calculations. But, like The Burrito pointed out, you can't rely on them working on every compu...
by Rad3k
Thu Sep 08, 2011 1:23 am
Forum: General
Topic: Short IF Statement in Lua
Replies: 5
Views: 5703

Re: Short IF Statement in Lua

I'm noticing that when I try to concatenate a string to this, it doesn't work print("1st run: " ..(initialRun and "Yes" or "No")) Without the parentheses, an error is thrown for string to boolean concatenation With the parentheses, initialRun returns TRUE no matter wha...