Page 2 of 2
Re: Last Defense--Retro space invaders/Breakout game
Posted: Sun Apr 01, 2012 11:35 pm
by NecroBumpist
josefnpat wrote:I think I figured out your problem.
I am using an i7-920 and It started working a lot better when I was taxing my system with a lot of stuff in the background.
My system runs the love.update so fast, that it reads dt as zero.
Wow. I've heard of programmings being unusable because they ran too slowly, but too quickly is a new one lol.
Try enabling vsync if your hardware supports it and you'll be limited to 60FPS max or whatever your refresh rate is.
Re: Last Defense--Retro space invaders/Breakout game
Posted: Mon Apr 02, 2012 3:53 pm
by josefnpat
The love.run limits the game to 60fps, unless I'm mistaken. vsync is to avoid screen tearing.
Re: Last Defense--Retro space invaders/Breakout game
Posted: Mon Apr 02, 2012 4:34 pm
by Nixola
VSyinc also limits the framething, rate, on some PCs; love.run doesn't limit anything, unless you modify it
Re: Last Defense--Retro space invaders/Breakout game
Posted: Mon Apr 02, 2012 5:03 pm
by Larsii30
thats right. it should be enabled( vsync). You get a constant fps as fast as your monitor refresh rate (if your pc could handle the game) and the game is running on every pc in similar speed.
I've did a little fault in my game. I've noticed it while I tried to take a video of it. The game has run as fast as the pc could handle it and so I defined my speed for the player, enemys etc. optimized for my pc. then I changed the option in the conf and enabled vsync. I started the game and everything was running veeeeeeeeeeeeeeeeery slowly. And what have I learned.If you dont limit your fps you cant took videos of your game.
sorry for the terrible english !!
Hope you know what I mean.
greets
Re: Last Defense--Retro space invaders/Breakout game
Posted: Mon Apr 02, 2012 5:17 pm
by NecroBumpist
josefnpat wrote:The love.run limits the game to 60fps, unless I'm mistaken. vsync is to avoid screen tearing.
Nope.
love.run() wrote:
if love.timer then love.timer.sleep(1) end
This theoritically limits your game to 1000FPS w/o VSync.
Re: Last Defense--Retro space invaders/Breakout game
Posted: Tue Apr 03, 2012 6:14 am
by bartbes
@Larsii30: You did it wrong, your games are supposed to run just as fast everywhere.
Re: Last Defense--Retro space invaders/Breakout game
Posted: Tue Apr 03, 2012 4:12 pm
by Larsii30
Yep. A friend told me about this .
But it's already changed.