×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    53

    why does graphic part became slow?

    hello, i made a multiuser game that uses gps data to control the avatars. I been trying that each player in the game can send its gps coordinates to a database in a server using httplib...
    but when i begin to send data all the graphic part becomes slow.
    Do anybody know why is this?

    this function is in the main loop of the programm and when it get called ( it gets called when it connects to the gps satellites) the graphic part becaomes slow.

    Anybody have any idea of how to fix this?

    thanks

    oyuky

    Code:
    
    def senddata():
             conn.request("POST", "/cgi-bin/recibebasedathon.py", params, headers)
             response = conn.getresponse()

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    153

    Re: why does graphic part became slow?

    Hello oyuky,
    you should call the senddata() in a separat thread to avoid the graphic to slow down or hang.
    Code:
    thread.start_new_thread(senddata,())
    But threads are an isue of its own. To much to tell in one post. Look for threads in the forum.

    greetings and happy threading
    novis

Similar Threads

  1. listbox with small graphic vs. listbox with large graphic
    By huami in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-08-07, 10:57
  2. J2ME 2.5 beta too slow, and S60 SDK
    By maodean in forum Mobile Java General
    Replies: 2
    Last Post: 2006-09-22, 05:56
  3. problem on drawing a part from a bitmap to the screen
    By ceehira in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-08-26, 07:35
  4. problem with extracting part of string :-(
    By chishti.hameed in forum Symbian
    Replies: 1
    Last Post: 2005-06-30, 07:44
  5. part in dark and a part in light.
    By lucaudine in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-11-12, 13:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×