URL:
  <http://gna.org/patch/?1930>

                 Summary: Some load_game_dialog optimizations
                 Project: Battle for Wesnoth
            Submitted by: ms262976
            Submitted on: Monday 09/06/2010 at 01:25
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I've been playing Wesnoth for quite a while now and what I found pretty
annoying was that the "load game" window needs a long time to show up,
especially when there are many saves in my save folder. So I decided to make
this little patch which is aimed at optimizing it. It makes the following
changes to the source code:
- Added a cache to the menu widget that stores dimensions of rendered items
(used in max_items_onscreen(), column_widths()).
- Added the all_save_summaries function to savegame::save_index. This can be
used to obtain all required summaries faster than using save_summary in a
loop.
- Slightly modified sorting the items on the list (this probably does not
make a very big speed difference).
With these changes applied, the save game window popped up even 96% faster
for me.

It's my first contribution, so it is probably not perfect. Tell me what you
think.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 09/06/2010 at 01:25  Name: gui.patch  Size: 12kB   By: ms262976

<http://gna.org/patch/download.php?file_id=10191>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1930>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to