Search found 15 matches

by rvj
Tue Sep 18, 2012 12:36 am
Forum: Support and Development
Topic: drawing what's not on the screen (and best practices?)
Replies: 4
Views: 3276

Re: drawing what's not on the screen (framebuffer?)

Good questions, and I'd like to see the answers to them (as well as a love file of your set up). I haven't had much of a chance to test your first question (checking off-screen things instead of just drawing all of them) but I have a similar issue. From what I've read, you're generally better off ju...
by rvj
Fri Jul 20, 2012 2:20 pm
Forum: Support and Development
Topic: Gravity and lag
Replies: 23
Views: 12422

Re: Gravity and lag

I don't have much to contribute but just a heads up that in versions before 0.8.0 the first update's "dt" included the load time of the program, so on the first update, dt would be big, which means objects would potentially travel abnormally far (ie. past what your collision detection migh...
by rvj
Fri Jul 20, 2012 2:13 pm
Forum: Support and Development
Topic: unknown lag?
Replies: 5
Views: 2762

Re: unknown lag?

Yeah I don't see any glaring problems that would make it slow. I'm suspicious of the collision detection running in mech(dt). If you haven't already, try commenting out the entire nested 'for loop' and seeing if that makes a difference. I would imagine that 5 or 6 particles all checking your tiles c...
by rvj
Sat Jul 14, 2012 5:26 pm
Forum: Support and Development
Topic: How do I make LÖVE interact with luaprofiler?
Replies: 10
Views: 4058

Re: How do I make LÖVE interact with luaprofiler?

I get an error with the summary.lua included (I installed via luarocks and followed vrid's instructions above). The error is a bash error I guess: lua summary.lua ~/Projects/YourProfile.prof lua: summary.lua:5: '=' expected near 'LUA_PATH' Line 5 is this: export LUA_PATH LUA_CPATH I'm useless enough...
by rvj
Mon Apr 09, 2012 2:38 pm
Forum: Support and Development
Topic: Problems/Questions creating a flare system
Replies: 3
Views: 2461

Re: Problems/Questions creating a flare system

I've wanted to make a system for that for a while. I'm not certain I understand your specific question but here are my thoughts: I'd have a table for each flare that was released: flare.x flare.y flare.heading flare.timer --just holds the time at which the flare was fired off a function to release t...
by rvj
Sat Mar 24, 2012 6:18 pm
Forum: Support and Development
Topic: Constants
Replies: 6
Views: 2842

Constants

Does anyone else find it really annoying that there are no constants in Lua? Or does anyone have a way of using them? I know you can just declare a global variable instead. I also appreciate that lua is a scripting language, so using a little extra memory for variables that should be constants is no...
by rvj
Thu Feb 23, 2012 2:37 am
Forum: Support and Development
Topic: I don't know wtf is going on with this
Replies: 3
Views: 1874

Re: I don't know wtf is going on with this

After a quick look and no testing I've got this: when do you expect love.load() to be called? Not when the script loads.. right? Because if you wanted it to be called when the script loaded, you would have put it in the main.lua. So it doesn't get called ever. Your story1.lua gets loaded, but the lo...
by rvj
Mon Feb 20, 2012 4:54 am
Forum: Support and Development
Topic: vsync problem
Replies: 3
Views: 2888

Re: vsync problem

I don't have any good ideas about your problem but just in case it helps:

success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )

setMode has a parameter for vsync so if you set the mode somewhere in your script, you might have accidentally turned it off.
by rvj
Sat Feb 18, 2012 3:36 pm
Forum: Support and Development
Topic: little lags
Replies: 13
Views: 12763

Re: little lags

C'est probablement l'ordinateur mais c'est pas seulement le tien. Je vais continuer a chercher la probleme (pour genre une heure plus avant de lacher)

Forgive my french, I'm english.

But yeah I'll keep trying to narrow down the problem because it bugs me.
by rvj
Wed Feb 15, 2012 6:41 pm
Forum: Support and Development
Topic: little lags
Replies: 13
Views: 12763

Re: little lags

I don't think it's something else sucking up CPU cycles. I'm not running any anti-virus etc. I've attached a screenshot with my game running and a 'top' next to it (for the non-linux people it's just a list of processes ordered by % of processor usage. It suggests that the processor isn't being seri...