Changeset - 5d65a9001d84
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-06 20:04:59

Minor changes, contemplation.
1 file changed with 11 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -304,16 +304,24 @@ void status_report_generator(){
 
// This function makes the value of the frame 2, which means its completed.
 
void the_finisher(int frame){
 
	blendjob[jobnum].frameset[frame].frame_status++;
 
}
 
*/ // --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;
 

	
 
	blendjob[jobnum_new].total_frames = total; // sets the total number of frames in animation for status purposes
 

	
 
@@ -323,13 +331,14 @@ void frame_num_struct_builder(int sframe
 
		fcount++;
 
	}
 

	
 
	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;
 
	int frameset_count = 0; // the frameset number, note* frames in an animation don't start at zero
 
	short int done = 0;
 
	int priority = 10;
0 comments (0 inline, 0 general)