URL:
  <http://gna.org/bugs/?13302>

                 Summary: Large chat logs slow lobby considerably
                 Project: Battle for Wesnoth
            Submitted by: wildpenguin
            Submitted on: Wednesday 04/01/2009 at 11:56
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Multiplayer
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.0-svn
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I've noticed joining games and returning from games to the lobby slows over
time.  In the latest case, 8 hours continuous connection to the 1.6 MP server
resulted in 30+ second delay (at 100% CPU usage) to redisplay the lobby.

I've believe that the delay is approximately proportional to the quantity of
chat displayed in the textbox, and that the entirety of the texbox is
regenerated when joining a game, creating a game, returning from a game and
returning from the preferences dialogue.  The effects of this become notice
after a hundred or so messages.

Following is a backtrace during the delay:
#0  0x00007f46e8d505e5 in ?? () from /usr/lib/libSDL-1.2.so.0
#1  0x00007f46e8d50421 in ?? () from /usr/lib/libSDL-1.2.so.0
#2  0x00007f46e8d654b6 in SDL_LowerBlit () from /usr/lib/libSDL-1.2.so.0
#3  0x00007f46e8d65698 in SDL_UpperBlit () from /usr/lib/libSDL-1.2.so.0
#4  0x0000000000905b42 in gui::textbox::append_text ()
#5  0x00000000004fbf38 in mp::chat::init_textbox ()
#6  0x00000000004fc071 in mp::ui::set_location ()
#7  0x00000000004fc7e7 in mp::ui::ui ()
#8  0x000000000051fdc4 in mp::lobby::lobby ()
#9  0x00000000004f1cae in enter_lobby_mode ()
#10 0x00000000004f3cb6 in mp::start_client ()
#11 0x000000000041be29 in (anonymous
namespace)::game_controller::play_multiplayer ()
#12 0x00000000004202f8 in do_gameloop ()
#13 0x0000000000420f1c in main ()




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13302>

_______________________________________________
  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