Changeset 392 for trunk/game/utilities


Ignore:
Timestamp:
11/23/09 22:38:28 (10 years ago)
Author:
barra_parpg
Message:

Patch by mvbarracuda:

  • techdemo1_ground_level.xml is now a copy of map.xml but with larger ground layer (250*250 tiles)
  • You can test ingame performance by opening settings.xml and changing MapFile? to maps/techdemo1_ground_level.xml
  • Observations: performance is rather sluggish even on my win32 desktop system (15-20fps) and the pathfinding algorithm doesn't seem to cope well with so many tiles and therefore possible paths to calculate (player character seem to be stuck for seconds occasionally)
  • Possible options for PARPG to address the problem:
    • Find the bottleneck in FIFE and either convince the FIFE devs to look into it or figure it out ourselves and send in a patch
    • Go for a smaller map size for techdemo 1; we can reevaluate having larger maps in case the relevant FIFE code gets optimized in the future
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/utilities/layer_fill_utility.py

    r391 r392  
    44    base_string = """<i o="<object>" r="0" x="<X>.0" y="<Y>.0" z="0.0" />\n""" 
    55    try: 
    6         object = raw_input("Object Name:") 
     6        object = raw_input("Object Name: ") 
    77    except KeyboardInterrupt: 
    88        sys.exit(0) 
     
    1010    while xmin == None: 
    1111        try: 
    12             xmin = int(raw_input("xmin:")) 
     12            xmin = int(raw_input("xmin: ")) 
    1313        except ValueError: 
    1414            pass 
     
    1818    while xmax == None: 
    1919        try: 
    20             xmax = int(raw_input("xmax:")) 
     20            xmax = int(raw_input("xmax: ")) 
    2121        except ValueError: 
    2222            pass 
     
    2626    while ymin == None: 
    2727        try: 
    28             ymin = int(raw_input("ymin:")) 
     28            ymin = int(raw_input("ymin: ")) 
    2929        except ValueError: 
    3030            pass 
     
    3434    while ymax == None: 
    3535        try: 
    36             ymax = int(raw_input("ymax:")) 
     36            ymax = int(raw_input("ymax: ")) 
    3737        except ValueError: 
    3838            pass 
     
    4141 
    4242    try: 
    43         filename = raw_input("FileName - File will be overwritten without asking:") 
     43        filename = raw_input("FileName - File will be overwritten without asking: ") 
    4444    except KeyboardInterrupt: 
    4545        sys.exit(0) 
Note: See TracChangeset for help on using the changeset viewer.