Mouse lag in debian testing


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Temple Termagant

Posts: 5

Joined: Friday, 3rd June 2016, 12:51

Post Friday, 3rd June 2016, 12:54

Mouse lag in debian testing

Hi everyone,
I just built latest stable release on debian testing and everything works fine except the mouse. It's lagging (like 1-2s delay). I believe it is the same issue as the one in this bug report https://crawl.develz.org/mantis/view.php?id=10278 Is there any more info on that?

Thanks

Temple Termagant

Posts: 5

Joined: Friday, 3rd June 2016, 12:51

Post Tuesday, 14th June 2016, 19:14

Re: Mouse lag in debian testing

No workaround please? This bug is really annoying :oops:

Dungeon Master

Posts: 550

Joined: Sunday, 9th June 2013, 17:13

Post Thursday, 16th June 2016, 03:10

Re: Mouse lag in debian testing

This is a bug I've wanted to work on for some time, but have a hard time duplicating. In my testing (on ubuntu 15.10) I see rare lag sometimes occur where the targeting reticule lags between where the mouse is by maybe a second tops, but I can't really seem to trigger it in any reliable way.

Are you seeing this behavior at all times, from the beginning of the game, or is it something that pops up eventually, or under certain conditions?

Temple Termagant

Posts: 5

Joined: Friday, 3rd June 2016, 12:51

Post Thursday, 16th June 2016, 20:04

Re: Mouse lag in debian testing

gammafunk wrote:This is a bug I've wanted to work on for some time, but have a hard time duplicating. In my testing (on ubuntu 15.10) I see rare lag sometimes occur where the targeting reticule lags between where the mouse is by maybe a second tops, but I can't really seem to trigger it in any reliable way.

Are you seeing this behavior at all times, from the beginning of the game, or is it something that pops up eventually, or under certain conditions?

Hi thanks for answering, no it does happen all the time, as soon as the game is launched. I recently moved to testing and used to play the game on stable and I didn't have the issue. I'm using legacy drivers that are the same as when I was on stable so it can't be that... any ideas?

Dungeon Master

Posts: 550

Joined: Sunday, 9th June 2013, 17:13

Post Thursday, 16th June 2016, 20:08

Re: Mouse lag in debian testing

Thanks for replying. I'll try it on a debian testing VM when I have a chance. Hopefully I can at least recreate it. It doesn't happen on my system, again debian-based but actually ubuntu. I'd hope it's not anything related to drivers. My suspicion is that we're doing something bad with our SDL loop wrt mouse movement processing, and it just happens to rarely trigger based on some system factor, maybe Xorg version or the version of SDL2 itself. No promises as to the timeline of the fix, but I'll try to look into tracking that down now that I know how I might be able to see the problem reliably.

Temple Termagant

Posts: 5

Joined: Friday, 3rd June 2016, 12:51

Post Saturday, 18th June 2016, 13:10

Re: Mouse lag in debian testing

Hey, I updated my system and rebuilt the game from source today. It seems the mouse lag is not the only issue: in the beginning the game is playable barring the mouse delay (not as fast as I remember it from a few months ago though), and after a while the game seems to lag more and more to a point where movement is noticeably laggy. Restarting the game fixes the lag. I am using nvidia legacy 340.93 (used to run dcss fine some months ago on stable) and SDL from the testing repo.
Has there been a significant change in the rendering recently?
edit: not sure if it has to do with the problem, but the game seems to struggle with movement when I press a direction key and stay pressed (the character "jumps" to the tile rather than walk there tile by tile)

Dungeon Master

Posts: 550

Joined: Sunday, 9th June 2013, 17:13

Post Monday, 20th June 2016, 10:19

Re: Mouse lag in debian testing

There's been no direct changes to the rendering, but it's possible the updates to your system bring it more in line with what I saw on my system. The fact that it builds up over time for you is a good clue, and that's something I can hopefully reproduce.

I'm not sure if that laggy rendering for repeated keyboard commands movement is directly related to the mouse issue. Those commands will happen at a fixed rate when you hold down the key, but will happen rapidly. I think we have some general issue(s) with our SDL loop that's causing problems, and it's possible that we can find and fix them all together, so thanks for these details.

Ziggurat Zagger

Posts: 5589

Joined: Tuesday, 30th October 2012, 19:06

Post Monday, 20th June 2016, 22:47

Re: Mouse lag in debian testing

gammafunk wrote:There's been no direct changes to the rendering, but it's possible the updates to your system bring it more in line with what I saw on my system. The fact that it builds up over time for you is a good clue, and that's something I can hopefully reproduce.

I'm not sure if that laggy rendering for repeated keyboard commands movement is directly related to the mouse issue. Those commands will happen at a fixed rate when you hold down the key, but will happen rapidly. I think we have some general issue(s) with our SDL loop that's causing problems, and it's possible that we can find and fix them all together, so thanks for these details.


I could be misremembering, but doesn't crawl use the systems sdl by default? could it be as simple as needing to update it?
Spoiler: show
This high quality signature has been hidden for your protection. To unlock it's secret, send 3 easy payments of $9.99 to me, by way of your nearest theta band or ley line. Complete your transmission by midnight tonight for a special free gift!

Temple Termagant

Posts: 5

Joined: Friday, 3rd June 2016, 12:51

Post Wednesday, 22nd June 2016, 20:04

Re: Mouse lag in debian testing

Siegurt wrote:
gammafunk wrote:There's been no direct changes to the rendering, but it's possible the updates to your system bring it more in line with what I saw on my system. The fact that it builds up over time for you is a good clue, and that's something I can hopefully reproduce.

I'm not sure if that laggy rendering for repeated keyboard commands movement is directly related to the mouse issue. Those commands will happen at a fixed rate when you hold down the key, but will happen rapidly. I think we have some general issue(s) with our SDL loop that's causing problems, and it's possible that we can find and fix them all together, so thanks for these details.


I could be misremembering, but doesn't crawl use the systems sdl by default? could it be as simple as needing to update it?

Well im using latest from testing which is 2.0.4 aka latest stable release so it can't be that

Dungeon Dilettante

Posts: 1

Joined: Saturday, 16th July 2016, 19:55

Post Saturday, 16th July 2016, 20:05

Re: Mouse lag in debian testing

I get mouse lag as well on both 1.8 and trunk. It consistently lags for about 1 second and occasionally lags for around 2 seconds or more. There's very little lag upon starting the game but after just a couple minutes of playing it starts to lag. If there's any info I can give you that might help then let me know what you need.

Mines Malingerer

Posts: 41

Joined: Saturday, 17th December 2016, 18:26

Post Saturday, 17th December 2016, 18:31

Re: Mouse lag in debian testing

I had the same problem on Debian unstable. I bisected it to commit 9e6f58dcabc7f47398c9806e4c80f93efbd0d4d2: "Fix resizing of the Tiles window". This reverts cleanly on trunk, and doing so fixes the problem with no obvious side effects.

Dungeon Master

Posts: 550

Joined: Sunday, 9th June 2013, 17:13

Post Thursday, 19th January 2017, 09:46

Re: Mouse lag in debian testing

For anyone following this, I pushed a fix in 0.20-a0-502-g555d78b. Hopefully this fixes the mouse lag issue due those event loop changes way back in 0.16. If anyone can test this version on their system, either by compiling it or using the windows trunk build when that updates tomorrow, that would be appreciated. You have to make sure your version is at or later than 0.20-a0-502-g555d78b; any earlier trunk version won't have the fix. Thanks!

Return to Technical Support

Who is online

Users browsing this forum: Siegurt and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.