Deutsches Simutransforum
build1940 braucht viel Prozessorleistung - Druckversion

+- Deutsches Simutransforum (https://simutrans-forum.de/mybb)
+-- Forum: Simutrans (https://simutrans-forum.de/mybb/forumdisplay.php?fid=3)
+--- Forum: Bugs und Probleme (https://simutrans-forum.de/mybb/forumdisplay.php?fid=11)
+---- Forum: behobene Bugs (https://simutrans-forum.de/mybb/forumdisplay.php?fid=12)
+---- Thema: build1940 braucht viel Prozessorleistung (/showthread.php?tid=3268)

Seiten: 1 2 3 4


build1940 braucht viel Prozessorleistung - Gotthardlok - 06-08-2008

Simutrans-Version:
1.00build1940
PAK-Set (+zusätzliche PAK-Dateien):
pak64
Betriebssystem:
Linux
Fehler (möglichst genaue Beschreibung):
Diese Version braucht enorme Prozessorkapazitäten; ein AMD 600MHz-Prozessor ist ausgelastet (simloops 0,0). build1904 läuft hingegen flüssig.
Verhalten (Absturz, Einfrieren, ...):
Spiel reagiert kaum, Bildaufbau und Zugabfahrt sind verzögert. Kann so leider nichts testen.


- Gotthardlok - 07-08-2008

build1941 ist ebenso schwerfällig...

Am schnellsten scheint es noch zu laufen, wenn man es auf der grafischen Oberfläche immer wieder in den Hintergrund schickt und zurückholt, dann fahren häufig Züge ab.
Die Industrieproduktion scheint stillzustehen oder extrem verlangsamt zu laufen; jedenfalls hat die Hochspannung 0V, abgesehen von kurzzeitigen Spitzen, die ein Kraftwerk hin und wieder erzeugt.


- Gotthardlok - 07-08-2008

Versucht Simutrans etwa, zwanghaft eine Soundkarte zu suchen?
Brauchts eine neuere ALSA lib als bei mir verfügbar ist? (Kenne meine Versionsnummer nicht)

romaschw@re420:~/simutrans> ./simutrans
Reading low level config data ...
parse_simuconf() at config/simuconf.tabReading simuconf.tab successful!
Preparing display ...
Screen Flags: requested=10, actual=10
Loading font 'font/prop.fnt'
font/prop.fnt sucessfully loaded as old format prop font!
Init done.
Reading compatibility sound data ...
ALSA lib confmisc.c:768Sadparse_card) cannot find card '0'
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392Sadsnd_func_concat) error evaluating strings
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251Sadsnd_func_refer) error evaluating name
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982Sadsnd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145Sadsnd_pcm_open_noupdate) Unknown PCM default
Could not open required audio channel. Muting
Reading city configuration ...
Reading speedbonus configuration ...
Reading forest configuration ...
Reading object data from pak.ind64/...
tunnel_reader_t::register_obj(): Tunnel FastRailTunnel geladen
tunnel_reader_t::register_obj(): Tunnel FastRoadTunnel geladen
tunnel_reader_t::register_obj(): Tunnel RailTunnel geladen
tunnel_reader_t::register_obj(): Tunnel RoadTunnel geladen
Reading menu configuration ...
Reading midi data ...
ALSA lib confmisc.c:768Sadparse_card) cannot find card '0'
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392Sadsnd_func_concat) error evaluating strings
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251Sadsnd_func_refer) error evaluating name
ALSA lib conf.c:3510Sad_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3982Sadsnd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145Sadsnd_pcm_open_noupdate) Unknown PCM default
Reading MIDI file '/home/romaschw/simutrans/music/01-Simutrans-Main-Theme.mid' - Main Theme
Reading MIDI file '/home/romaschw/simutrans/music/02-Gotta-catch-that-train.mid' - Gotta catch that train
Reading MIDI file '/home/romaschw/simutrans/music/03-Sunday-drivers.mid' - Sunday drivers
Reading MIDI file '/home/romaschw/simutrans/music/04-Simutrans-B-Theme.mid' - Simutrans B Theme
Reading MIDI file '/home/romaschw/simutrans/music/05-Boring-afternoon.mid' - Boring Afternoon
Reading MIDI file '/home/romaschw/simutrans/music/06-A-busy-day-at-the-depot.mid' - A busy day at the depot
Reading MIDI file '/home/romaschw/simutrans/music/07-Transport-chaos.mid' - Transport Chaos
Reading MIDI file '/home/romaschw/simutrans/music/08-The-journey-home.mid' - The Journey Home
Reading MIDI file '/home/romaschw/simutrans/music/09-simupolitan-swing.mid' - simupolitan swing
Reading MIDI file '/home/romaschw/simutrans/music/10-Easy-driving.mid' - easy driving
Reading MIDI file '/home/romaschw/simutrans/music/11-stucked-convoi.mid' - stucked comvoi
Reading MIDI file '/home/romaschw/simutrans/music/12-Steamin-across-the-prairies.mid' - Steamin' across the prairies
Reading MIDI file '/home/romaschw/simutrans/music/13-Stephenson-blues.mid' - Stephenson blues
Reading MIDI file '/home/romaschw/simutrans/music/16-Midnight-Express2.mid' - Midnight Express2
Reading MIDI file '/home/romaschw/simutrans/music/14-Last-journey-of-the-Niagara.mid' - Last journey of the Niagara
Reading MIDI file '/home/romaschw/simutrans/music/15-The-Wayside-Blues.mid' - The Wayside Blues
Reading MIDI file '/home/romaschw/simutrans/music/16-Midnight-Express2.mid' - Midnight Express2
Reading MIDI file '/home/romaschw/simutrans/music/17-The-Benevolent-Dictators-March.mid' - The Benevolent Dictators March
Reading MIDI file '/home/romaschw/simutrans/music/18-Ride-that-train.mid' - Ride that train
Reading MIDI file '/home/romaschw/simutrans/music/19-Rockin-trucker.mid' - Rockin` trucker
Reading MIDI file '/home/romaschw/simutrans/music/20-Last-Trip.mid' - Last Trip
Reading MIDI file '/home/romaschw/simutrans/music/21-Dusty-Eyes.mid' - Dusty Eyes
Reading MIDI file '/home/romaschw/simutrans/music/22-Variable-Journeys.mid' - Variable Journeys
Reading MIDI file '/home/romaschw/simutrans/music/23-Something-for-Silver-Sand.mid' - Something for Silver Sand
Reading MIDI file '/home/romaschw/simutrans/music/24-needlessly-striking.mid' - needlessly striking
Reading MIDI file '/home/romaschw/simutrans/music/25-Float-on-by.mid' - Float on by
Reading MIDI file '/home/romaschw/simutrans/music/26-Tantalizingly-Unusual.mid' - Tantalizingly Unusual
Reading MIDI file '/home/romaschw/simutrans/music/27-March-Winds.mid' - March Winds
Reading MIDI file '/home/romaschw/simutrans/music/28-Road-to-Warm-Places.mid' - Road to Warm Places
Reading MIDI file '/home/romaschw/simutrans/music/29-Runaway.mid' - Runaway
Reading MIDI file '/home/romaschw/simutrans/music/30-On-the-waterfront.mid' - On the waterfront
Reading MIDI file '/home/romaschw/simutrans/music/01-Simutrans-Main-Theme.mid' - Main Theme
Reading MIDI file '/home/romaschw/simutrans/music/02-Gotta-catch-that-train.mid' - Gotta catch that train
Reading MIDI file '/home/romaschw/simutrans/music/03-Sunday-drivers.mid' - Sunday drivers
Reading MIDI file '/home/romaschw/simutrans/music/04-Simutrans-B-Theme.mid' - Simutrans B Theme
Reading MIDI file '/home/romaschw/simutrans/music/05-Boring-afternoon.mid' - Boring Afternoon
Reading MIDI file '/home/romaschw/simutrans/music/06-A-busy-day-at-the-depot.mid' - A busy day at the depot
Reading MIDI file '/home/romaschw/simutrans/music/07-Transport-chaos.mid' - Transport Chaos
Reading MIDI file '/home/romaschw/simutrans/music/08-The-journey-home.mid' - The Journey Home
Reading MIDI file '/home/romaschw/simutrans/music/09-simupolitan-swing.mid' - simupolitan swing
Reading MIDI file '/home/romaschw/simutrans/music/10-Easy-driving.mid' - easy driving
Reading MIDI file '/home/romaschw/simutrans/music/11-stucked-convoi.mid' - stucked comvoi
Reading MIDI file '/home/romaschw/simutrans/music/12-Steamin-across-the-prairies.mid' - Steamin' across the prairies
Reading MIDI file '/home/romaschw/simutrans/music/13-Stephenson-blues.mid' - Stephenson blues
Reading MIDI file '/home/romaschw/simutrans/music/16-Midnight-Express2.mid' - Midnight Express2
Reading MIDI file '/home/romaschw/simutrans/music/14-Last-journey-of-the-Niagara.mid' - Last journey of the Niagara
Reading MIDI file '/home/romaschw/simutrans/music/15-The-Wayside-Blues.mid' - The Wayside Blues
Reading MIDI file '/home/romaschw/simutrans/music/16-Midnight-Express2.mid' - Midnight Express2
Reading MIDI file '/home/romaschw/simutrans/music/17-The-Benevolent-Dictators-March.mid' - The Benevolent Dictators March
Reading MIDI file '/home/romaschw/simutrans/music/18-Ride-that-train.mid' - Ride that train
Reading MIDI file '/home/romaschw/simutrans/music/19-Rockin-trucker.mid' - Rockin` trucker
Reading MIDI file '/home/romaschw/simutrans/music/20-Last-Trip.mid' - Last Trip
Reading MIDI file '/home/romaschw/simutrans/music/21-Dusty-Eyes.mid' - Dusty Eyes
Reading MIDI file '/home/romaschw/simutrans/music/22-Variable-Journeys.mid' - Variable Journeys
Reading MIDI file '/home/romaschw/simutrans/music/23-Something-for-Silver-Sand.mid' - Something for Silver Sand
Reading MIDI file '/home/romaschw/simutrans/music/24-needlessly-striking.mid' - needlessly striking
Reading MIDI file '/home/romaschw/simutrans/music/25-Float-on-by.mid' - Float on by
Reading MIDI file '/home/romaschw/simutrans/music/26-Tantalizingly-Unusual.mid' - Tantalizingly Unusual
Reading MIDI file '/home/romaschw/simutrans/music/27-March-Winds.mid' - March Winds
Reading MIDI file '/home/romaschw/simutrans/music/28-Road-to-Warm-Places.mid' - Road to Warm Places
Reading MIDI file '/home/romaschw/simutrans/music/29-Runaway.mid' - Runaway
Reading MIDI file '/home/romaschw/simutrans/music/30-On-the-waterfront.mid' - On the waterfront
Calculating textures ...Creating landscape shape...
- ok
Creating cities ...
Distributing 1 tourist attractions ...
Preparing startup ...
Loading BDF font 'font/Prop-Latin1.bdf'
Unexpected character (255) for 255 character font!
Loading BDF font font/Prop-Latin1.bdf with 255 characters
World destroyed.


- Gotthardlok - 07-08-2008

Oder ist deses 0 gefährlich (sollte Animation abschalten)?

# animate the water each intervall (if images available)
# costs some time for the additional redraw (~1-3%)
water_animation_ms = 0


- Gotthardlok - 07-08-2008

Ebenso:

# there are some other grounds (like rocky, lakes etc. )
# which could be added to the map (default 10)
# show random objects to break uniformity (every n suited tiles)
random_grounds_probability = 0

# show random moving animals (n = every n suited tiles, default 1000)
random_wildlife_probability = 0


- wernieman - 07-08-2008

Hast Du denn die Musik Unterstützung mal ausgeschaltet?

Welcher Schalter was es denn noch mal ...


- Gotthardlok - 07-08-2008

# How many frames per second to use? Display may look pretty until 10 or so
# (depends very much on computer, game complexity and graphics driver)
frames_per_second = 1

So frischen sich die Anzeigen etwa 5* pro Sekunde auf, sollten sich aber nur im Sekundentakt aktualisieren. Ebenso reaktionsfähig wird die Eingabe beim Schnellvorlauf (wenig Rücksicht auf Framerate).

Unter Einstellungen -> Sound kann der Sound an- und abgeschaltet werden, was ich auch gemacht habe. Die ALSA lib-Fehlermeldungen kommen trotzdem.


- Gotthardlok - 07-08-2008

frames_per_second = 18

ist auf meinem Gerät der Grenzwert; höhere Raten überfordern meinen Prozessor.
Andere Einstellungen haben kaum einen Einfluss auf die Bedienbarkeit von Simutrans.

Es bleibt aber die Frage, warum die alte build1904 dieselbe Einstellung für frames_per_second= problemlos rechnen konnte. Werden im Code neu Werte multipliziert (weniger ruckeln?)


- Gotthardlok - 07-08-2008

Noch ein Testergebnis: Bei

frames_per_second = 12

genügen 6 geöffnete Industriefenster oder 9 geöffnete Haltestellenfenster, um die Auslastung meines AMD 600MHz-Prozessors von 60% (ohne offene Infofenster) auf 100% (oder mehr) zu steigern - Simutrans reagiert nicht mehr auf Eingaben. Das dürfte doch zuviel Auslastungssteigerung sein, vor allem, wenn die Infofenster statisch, also immer vorhanden, sind.


- prissi - 08-08-2008

Die alte ROutine war grob fehlerhaft und hat viel zu viel Rechnezeit verbraucht. Die neue sollte besser sein, scheint aber unter Linux zumindest bei dir ein Problem zu haben. Ich kannte es nur teilweise reproduzieren.

Teste mal die neuste Revision.