Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010025Dwarf FortressDwarf Mode -- Interface, Stockspublic2016-10-02 09:322017-05-31 14:16
EldritchVoid 
Loci 
lowminoralways
confirmedopen 
Windows 10
0.43.05 
 
0010025: Lagging in stocks
Every time I try to go past stocks the game freezes for a few seconds, has happened across several games

1. Go to stocks screen
2. Scroll past stocks
Modified underground crops to grow in all seasons, changed animal person size so that they can use armor, doubt modifications are relevant
No tags attached.
Issue History
2016-10-02 09:32EldritchVoidNew Issue
2016-10-02 13:41LociNote Added: 0035927
2016-10-02 13:41LociAssigned To => Loci
2016-10-02 13:41LociStatusnew => confirmed
2017-05-30 19:42lethosorNote Added: 0036578
2017-05-31 14:16LociNote Added: 0036579
2020-03-16 12:39HuntthetrollIssue Monitored: Huntthetroll

Notes
(0035927)
Loci   
2016-10-02 13:41   
Of particular note, the lag occurs/worsens when there are very large numbers of items in the given category (e.g. 5,000+). The UI freezes when a category is selected, presumably while the items in the category are prepared for display in the right pane. Simply decoupling the category selection UI from the right-pane display (so that the user can fluidly move past categories they aren't interested in before the right pane is populated) would go a long way toward mitigating this issue.
(0036578)
lethosor   
2017-05-30 19:42   
This looks like 0003878, 0004513, 0004672, and maybe others.

I'm not entirely sure what you mean by your suggestion - are you talking about not displaying anything at all in the right column until the user selects something in the left column explicitly?
(0036579)
Loci   
2017-05-31 14:16   
Sure, and since all those issues were closed without resolving the problem... the problem still exists.

The proposed fix would allow the player to continue moving the selector in the left pane while the right pane was being processed/populated, thereby making the player wait for the right pane to complete only if they actually wanted to see everything in that category, not just move past it on the list. That is a rather standard way to handle a UI with excessively long implicit operations.