The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Roboron on January 19, 2022, 08:32:53 PM

Title: [Linux] Delay when pressing buttons in the pak selector
Post by: Roboron on January 19, 2022, 08:32:53 PM
The pak selector and the integrated installer have a delay when pressing buttons, that can vary from an extra second when you click an entry up to 10 seconds when you try to move the scrollbar.

Such delay is not in the game itself, only in this initial screen.

This started happening to me around 2 months ago, but only recently another user confirmed this to me.

EDIT: r10186 cause this problem.
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: _Hajo_ on January 19, 2022, 08:47:14 PM
I can confirm this too. It was not in the first version that I downloaded, but after pulling sources from git to compile them myself I got the delay. Must be post 123.0
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: RESTRICTED ACCOUNT on January 19, 2022, 08:58:50 PM
This has been occurring for years in extended.
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: Roboron on January 19, 2022, 09:04:47 PM
After some investigation compiling older revisions, it seems that r10186 cause this problem.
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: makie on January 19, 2022, 09:25:11 PM
I can confirm this too.
The wait (roundabout 10sec) is before loading pakset.
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: prissi on January 20, 2022, 05:29:18 AM
Have the devices a touchpad? If finger handling is on SDL2 translates one touch to about 50 events, each moving the finger by 0.00001 pixel (since these are floats). Simutrans handles one event per loop and then sleeps 20 ms in modal mode. Apparently, the SDL2 does a denial of service attack on such an event queue.

Please try r10370
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: makie on January 20, 2022, 08:34:01 AM
Quote from: prissi on January 20, 2022, 05:29:18 AM
Please try r10370
yes, is better
Title: Re: [Linux] Delay when pressing buttons in the pak selector
Post by: Roboron on January 20, 2022, 10:10:30 AM
Fixed. Thank you.