Last Defense--Retro space invaders/Breakout game

Show off your games, demos and other (playable) creations.
NecroBumpist
Prole
Posts: 7
Joined: Sun Jan 22, 2012 3:04 am

Re: Last Defense--Retro space invaders/Breakout game

Post 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.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Last Defense--Retro space invaders/Breakout game

Post by josefnpat »

The love.run limits the game to 60fps, unless I'm mistaken. vsync is to avoid screen tearing.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Last Defense--Retro space invaders/Breakout game

Post by Nixola »

VSyinc also limits the framething, rate, on some PCs; love.run doesn't limit anything, unless you modify it
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Last Defense--Retro space invaders/Breakout game

Post 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. :D

sorry for the terrible english !! :)
Hope you know what I mean.
greets
NecroBumpist
Prole
Posts: 7
Joined: Sun Jan 22, 2012 3:04 am

Re: Last Defense--Retro space invaders/Breakout game

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Last Defense--Retro space invaders/Breakout game

Post by bartbes »

@Larsii30: You did it wrong, your games are supposed to run just as fast everywhere.
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Last Defense--Retro space invaders/Breakout game

Post by Larsii30 »

Yep. A friend told me about this .
But it's already changed.
Post Reply

Who is online

Users browsing this forum: No registered users and 204 guests