Changeset 31

Show
Ignore:
Timestamp:
09/24/07 20:25:51 (1 year ago)
Author:
steve
Message:

Reorder loading sequence, baseline loading in mainloop, and more "response" feeling loading sequence, as pictures are displayed as they are loaded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mactorii.py

    r30 r31  
    331331        global fps_display 
    332332        global display_picture 
    333          
    334         # first thing, load baselines 
    335         for baseline in config.baselines: 
    336                 load_baseline(baseline) 
    337333                 
    338334        # order is important here. window_setup must be setup first! Likewise with font 
     
    373369        win.set_visible() 
    374370        unloaded = list(files) 
     371        unloaded_baselines = list(config.baselines) 
    375372         
    376373        while not win.has_exit: 
     
    379376                glClear(GL_COLOR_BUFFER_BIT) 
    380377                 
     378                if len(unloaded_baselines) > 0: 
     379                        f = unloaded_baselines.pop() 
     380                        str = "|||||"*len(unloaded_baselines) 
     381                        t = font.Text(ft, str, 0, config.text_yoffset) 
     382                        t.draw() 
     383                        win.flip() 
     384                         
     385                        load_baseline(f) 
     386                        continue 
     387                         
    381388                if len(unloaded) > 0: 
    382389                        f = unloaded.pop() 
     
    384391                        t = font.Text(ft, str, 0, config.text_yoffset) 
    385392                        t.draw()                         
    386                         win.flip() 
     393                        #win.flip() 
     394                         
    387395                        load_file(f) 
    388396                         
    389                         if len(unloaded) == 0: 
    390                                update_renderables() 
    391                         continue 
     397                        #if len(unloaded) == 0: 
     398                        update_renderables() 
     399                        #continue 
    392400                         
    393401                if display_picture != None: