Ticket #883 (closed bug: fixed)
Angband spends too much time updating the item list.
| Reported by: | morth | Owned by: | magnate |
|---|---|---|---|
| Milestone: | 3.1.1 beta | Keywords: | cleanup |
| Cc: |
Description
Well, I accidently overwrote my savefile with my testing svn version, so playing r1444 now... I noticed running is _much_ slower than it was in 3.1.0 beta, even after I disable the pricing log. Almost not playable on my 2GHz macbook pro. Profiling gives the following traceback:
Depth Image Samples Function
24 angband 1034 slay_power 23 angband 1034 object_power 22 angband 1034 object_value_real 21 angband 1034 object_value 20 angband 1034 display_itemlist 19 angband 1034 update_itemlist_subwindow 18 angband 1034 game_event_dispatch 17 angband 1034 redraw_stuff 16 angband 644 process_player 15 angband 644 dungeon 14 angband 644 play_game 13 angband 644 AngbandGame?
It seems a bit obsessive, the item list doesn't need updating at all while I'm not using items from the floor or a monster picks them up/destroys them (this was from running/resting only)
