Changeset - 1c70cb48bb28
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-07-06 00:40:18

-- changes to frame_finder() --
-changed for statement to a while statement

Mentally preparing self to change the entire frameset structure to 2 arrays instead, because I can't create a structure array without pre-defining the amount... if u can I don't know how. And that means I would have to make it 30k or something depending on how crazy people get with animations, which would waste a ton of memory.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -290,7 +290,7 @@ int frame_finder(){
 
	short int done = 0;
 
	int priority = 10;
 

	
 
	for(priority; priority >= 1; priority--){ // start the scan for the next job with the highest priority
 
	while(priority >= 1){ // start the scan for the next job with the highest priority
 
		finder_jobnum = hcfjob + 1; // reset it to start scanning at first uncompleted job for the pass at each priority level
 

	
 
		while(finder_jobnum <= highest_jobnum){
 
@@ -299,7 +299,7 @@ int frame_finder(){
 
				break;
 
			}
 

	
 
			if(done = 1)  // If it has found a job with the current priority value, it will break out of the loop
 
			if((done) = 1)  // If it has found a job with the current priority value, it will break out of the loop
 
				break;    // If none is found it goes to the next job to see if it is of the current priority value
 
			else
 
				finder_jobnum++;
 
@@ -307,6 +307,8 @@ int frame_finder(){
 

	
 
		if(done = 1) // if job has been found, it lets it out of the priority changer loop
 
			break;
 

	
 
		priority--;
 
	}
 

	
 
	while(your_frame < blendjob[finder_jobnum].total_frames){ // Finds the frameset number with a frame that needs to be rendered
0 comments (0 inline, 0 general)