# HG changeset patch # User ethanzonca # Date 2009-07-06 20:04:59 # Node ID 5d65a9001d8450546a839910c283cfba5a88e9e3 # Parent 1c295ac850fd484162eec329b0da622c2209a89d Minor changes, contemplation. diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -307,10 +307,18 @@ void the_finisher(int frame){ } */ // --End of saved frameset structure using code -- + + + + + + // -- NEW CODE TO USE ARRAYS INSTEAD OF THE FRAMESET STRUCTURE -- // This function creates frame array based on the total number of frames to be rendered, which will then be parsed by function frame_farmer. + +// Note from ethanzonca: So this doesn't seem to store who is running what frame. I think we need an array of structs for frameset, not an array. void frame_num_struct_builder(int sframe, int eframe) { - int jobnum_new = highest_jobnum + 1; + int jobnum_new = highest_jobnum + 1; // can't we use jobnum? because the framesets will correspond with the queued job... integrate this with the queuer? int total = (sframe - eframe) +1; // total number of frames int fcount = sframe; // Used to create all the frames in the structure from sframe to eframe int x = 0; @@ -326,7 +334,8 @@ void frame_num_struct_builder(int sframe highest_jobnum++; } -// matches your computer up with a lovely frame to render + +// matches your computer up with a not-so-lovely frame to render int frame_finder(){ int your_frame = NULL; // your_frame is an interger value that will be given to the client as the frame number to render int finder_jobnum = 0;