lag spikes

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
saiko-chriskun
Prole
Posts: 6
Joined: Wed Dec 01, 2010 8:13 pm

lag spikes

Post by saiko-chriskun » Wed Dec 15, 2010 7:51 pm

has anyone else experienced any lag spikes? about every second the time of one frame will jump slightly.. it's not that big a deal but it looks bad and was just wondering =/

User avatar
ghostwriter
Prole
Posts: 38
Joined: Sat Dec 11, 2010 11:08 pm

Re: lag spikes

Post by ghostwriter » Wed Dec 15, 2010 8:14 pm

Are you accessing the hard drive at any point in your main loop? If you load a new image or sound you may experience a slight delay.

User avatar
saiko-chriskun
Prole
Posts: 6
Joined: Wed Dec 01, 2010 8:13 pm

Re: lag spikes

Post by saiko-chriskun » Wed Dec 15, 2010 8:42 pm

no, it even happens when I load the FPS demo, which only prints the current value for dt.

User avatar
ghostwriter
Prole
Posts: 38
Joined: Sat Dec 11, 2010 11:08 pm

Re: lag spikes

Post by ghostwriter » Thu Dec 16, 2010 12:48 am

Hmm... you might have other applications running that are slowing things down. Do you notice this lag in other 3d applications? I had the same thing happen to me a couple years ago, it turned out to be due to the bandwidth monitor I had running in the background, because it was continuously updating its log files. I've noticed that some IRC clients can do this as well.

User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: lag spikes

Post by adrix89 » Fri Dec 17, 2010 10:10 am

Its a vsync problem
A way to fix this is to either set it to fullscreen(witch means you have to do some hacking for most games) or set vsync to false(which I don't recommend,besides most don't use dt)
Old thread:
http://love2d.org/forums/viewtopic.php?f=4&t=2003
I use Workflowy but you can check out Dynalist as its the better offer.

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: lag spikes

Post by TechnoCat » Fri Dec 17, 2010 6:16 pm

adrix89 wrote:most don't use dt
This isn't true.
My graphics drivers force v-sync off and I don't have a problem with most games.

thitem
Prole
Posts: 2
Joined: Fri Dec 17, 2010 4:23 am

Re: lag spikes

Post by thitem » Sat Dec 18, 2010 8:53 am

Try set high priority for game application through the task manager.

User avatar
Xkeeper
Prole
Posts: 40
Joined: Wed Aug 04, 2010 2:49 am
Location: Henderson, Nevada, US
Contact:

Re: lag spikes

Post by Xkeeper » Sat Dec 18, 2010 10:25 am

thitem wrote:Try set high priority for game application through the task manager.
This is not only a really really bad idea, but it won't fix it, either.

It's a vsync issue. Just disable vsync and apply some common sense dt checks and you're good.

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: lag spikes

Post by bartbes » Sat Dec 18, 2010 11:00 am

How would vsync cause this?

thitem
Prole
Posts: 2
Joined: Fri Dec 17, 2010 4:23 am

Re: lag spikes

Post by thitem » Sat Dec 18, 2010 11:23 am

I have this problem too. And high priority fix it.
Maybe lag spikes have a another reason.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], dezoitodemaio and 30 guests