Page 1 of 2

little lags

Posted: Tue Feb 14, 2012 10:34 pm
by xefhs
Hi guys,

In this attached .love, my image is supposed to move in x smoothly,
but sometimes (every ~10 secs) the movement is break and my image seems to be teleported. (just few pixels)

It run at 60 fps all the time, I have also tested with another PC. (I'm on love 0.7.2)

This is very annoying, because that break the game's fluidity. :(

If anyone knows what this is due (and tell me if you have the same problem please)...

Re: little lags

Posted: Tue Feb 14, 2012 10:40 pm
by Jasoco
There is absolutely nothing wrong with your code.

The problem lies with the computer. Windows, OS X or Linux? There is obviously something running in the background that gobbles up processor cycles causing this. It's not Löve. I'm 99.999999999999999% certain.

Re: little lags

Posted: Tue Feb 14, 2012 11:01 pm
by xefhs
I've a PC run on Windows 7 x86, with the CPU usage at 1% when I do nothing, 15% when I run my .love (I have a 2 years old Notebook, Intel Core 2 Duo @ 2.00 GHz), I will try to update all my drivers but I have no hope. :cry:

Re: little lags

Posted: Tue Feb 14, 2012 11:43 pm
by slime
Does it happen when the game is full-screen?

Re: little lags

Posted: Wed Feb 15, 2012 12:11 am
by TechnoCat
xefhs wrote:In this attached .love, my image is supposed to move in x smoothly,
but sometimes (every ~10 secs) the movement is break and my image seems to be teleported. (just few pixels).
You can always cap the maximum DT to prevent large teleports.

Re: little lags

Posted: Wed Feb 15, 2012 4:44 am
by rvj
I get the exact same issue. I get it with my own game, but also with the love program without parameters (ie. it happens on all love programs).

I also get a max framerate of 60 FPS. It freezes for a few frames (half a second to a second probably), then continues.

Ubuntu 11.10 on a Gateway LT3201h netbook
AMD Athlon 2 Neo Processor K125, 3GB ram,
ATI Mobility Radeon HD 4225

I don't have the 'Additional Drivers' installed for the graphics card because it doesn't work great with this machine on ubuntu... for that reason I just ignored this issue on this computer.

I've tried VSync on and off, no changes.

Re: little lags

Posted: Wed Feb 15, 2012 5:36 am
by utunnels
It lagged for a few seconds when I started the demo, but became smooth later.

Re: little lags

Posted: Wed Feb 15, 2012 11:40 am
by Ellohir
Running smoothly at 61FPS with unnoticeable bumps to 59. Geforce 4 MX on windows.

Re: little lags

Posted: Wed Feb 15, 2012 11:47 am
by xefhs
I'm not alone :roll:
No seriously, I run it windowed with the default window size 800*600, and I have also these lags in all LÖVE programs.
I've updated my graphics card drivers but doesn't change anything.
It lagged for a few seconds when I started the demo, but became smooth later.
Me too and I think that is normal because LÖVE is getting ready, it doesn't matter for me.

Re: little lags

Posted: Wed Feb 15, 2012 1:44 pm
by miko
Jasoco wrote:There is absolutely nothing wrong with your code.

The problem lies with the computer. Windows, OS X or Linux? There is obviously something running in the background that gobbles up processor cycles causing this. It's not Löve. I'm 99.999999999999999% certain.
I agree. It could be an antivirus, autoupdate, or anything running in the background, invisible to user. It could be also the graphics card (or its driver). I am attaching modified version, which shows current/max dt. I get dt=0.017, maxdt=0.14-0.20, FPS at 60, and all is smooth. So no problem for me.