The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Vladki on October 17, 2017, 06:44:16 PM

Title: Game does not load until mouse is moved
Post by: Vladki on October 17, 2017, 06:44:16 PM
I have long noticed strange behavior. The loading of the game (after choosing pakest) was freezing for random time. I thought that it is due to my harddrive going to sleep (mini-pc) or something like that. But recently I have noticed that it  could be frozen for minutes, and suddenly continues when I move mouse pointer. I have now repeated that reliably 3 times in row. To repeat click carefully when choosing pasket so you do not move the mouse after click. May be affected by architecture - Linux/64 bit, KDE 4, Debian 8

$ grep '^[^#]' config.default
BACKEND = mixer_sdl
COLOUR_DEPTH = 16
OSTYPE = linux
WITH_REVISION = 1 # adds the revision from Github; required for networkgames
MULTI_THREAD = 1 # Enable multithreading
SDL_CONFIG     = sdl-config
VERBOSE = 1
FLAGS = -DUSE_C -fno-delete-null-pointer-checks -fno-strict-aliasing -std=c++11
Title: Re: Game does not load until mouse is moved
Post by: jamespetts on October 17, 2017, 10:11:12 PM
I have been noticing this for a number of years; it first occurred many years ago after merging a Standard change (back when it was still feasible to merge automatically). I do not know enough about the more low level parts of the code to understand how to fix this.