Skip to content

Commit

Permalink
change scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
tangdj committed Jan 10, 2019
1 parent af7b23b commit 35b9bad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 295 deletions.
Binary file modified runtime/cgl-render
Binary file not shown.
2 changes: 1 addition & 1 deletion runtime/cgl_test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
num=$1
cmdPath=/home/dongjitang/clustergl-master_multiserver/runtime
cmdPath=/home/dongjitang/clustergl-master_multiserver_network/runtime
run_sh=${cmdPath}/run.sh
run_client_sh=${cmdPath}/run_client.sh
cd $cmdPath
Expand Down
291 changes: 0 additions & 291 deletions runtime/glx_frame_rate.log

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ bool App::run_shared(string src)
phase = strtok (NULL, ",");
count++;
}
if(util[0]<=50&&util[1]<=50)
if(util[0]<=90&&util[1]<=90)
{
index = i;
//LOG("port number %d,%d\n",index,portNum.size());
Expand Down
7 changes: 5 additions & 2 deletions src/mod_exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ ExecModule::ExecModule()
exit(1);
}


}


Expand Down Expand Up @@ -319,6 +318,10 @@ static void EXEC_CGLSwapBuffers(byte *commandbuf)
time=1;
LOG("%d time,%6.3f FPS\n",time,fps);
}
else
{
time =0;
}
}
if(time)
usleep(5000);
Expand Down Expand Up @@ -2859,7 +2862,7 @@ static void EXEC_glReadPixels(byte *commandbuf)
//LOG("glReadPixels %d %d %d %d %d %d\n", *x, *y, *width, *height,*format,*type);
GLubyte * pixel_data = (GLubyte*)popBuf();
glReadPixels(*x, *y, *width, *height, GL_BGR, *type,pixel_data);
//create_ppm("tmp", nscreenshots, *width, *height, 255, 3, pixel_data);
create_ppm("tmp", nscreenshots, *width, *height, 255, 3, pixel_data);


nscreenshots++;
Expand Down

0 comments on commit 35b9bad

Please sign in to comment.