I am experiencing high latency of input events.
I use 'print' to print mouse position / key pressed events, love usually print the current events 1 second later (no matter where I moniter these events: draw(), update(), mousepressed(), etc.
Latency can also be sensed using samples from wiki.
Is there anybody experiencing same problem as me ?
Additional information:
I am using a dual-core Intel x86 laptop running Archlinux i686 and installed love from AUR (version 0.6.2)
Latency of Input Events?
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Latency of Input Events?
I'm not experiencing anything like that.
Can you put a code sample?
Can you put a code sample?
When I write def I mean function.
Re: Latency of Input Events?
For example,kikito wrote:I'm not experiencing anything like that.
Can you put a code sample?
Code: Select all
function love.draw()
local mx, my = love.mouse.getPosition()
love.graphics.print(mx..' '..my, 200, 200)
end
The problem is the latency: the time love display (x1, y1) is about 1 second after mouse stopping at (x1, y1)
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Latency of Input Events?
But is that your complete main.lua file, or are you doing something else (i.e. in love.update)
When I write def I mean function.
Re: Latency of Input Events?
that is a complete main.lua ....kikito wrote:But is that your complete main.lua file, or are you doing something else (i.e. in love.update)
I found that love-hg is faster. Maybe my hardware is somehow slow, but love uses < 10% CPU, it is strange ...
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Latency of Input Events?
That is very strange, I have never seen love do anything like it, you could try the usual stuff, update drivers. Another thing that might be interesting, could you test whether this lag also exists in other SDL programs/games (because love uses SDL for input/events)?
Re: Latency of Input Events?
I noticed at least one laptop also lags really bad with Love. Bad enough that the physics glitch up.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Latency of Input Events?
But that seems like a mere lack of processing power, input latency is weird.
Re: Latency of Input Events?
I've tried Löve on a computer with no hardware OpenGL and a non-fancy processor. The particle demos ran at something like 5 frames per sec, and the Lovalanche demo had the balls tunnel thru each other & other weirdness. It was too slow for most things, but the input handling was never anywhere near that slow.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Latency of Input Events?
I don't even have this shit on my crappy laptop.
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 10 guests