Commit 932ff72f70db6259fc1e0316b51cab7e2b4ac0d1

Con Kolivas 2011-06-22T23:35:23

The gpuminer thread uses very little cpu and needs to keep the gpu busy with as few delays as possible. Don't nice it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cpu-miner.c b/cpu-miner.c
index ff428d5..5cd41db 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -798,8 +798,6 @@ static void *gpuminer_thread(void *userdata)
 	uint32_t res[128], blank_res[128];
 	cl_kernel *kernel;
 
-	setpriority(PRIO_PROCESS, 0, 19);
-
 	memset(blank_res, 0, BUFFERSIZE);
 
 	size_t globalThreads[1];