Skip to content

Commit 9d4b1f9

Browse files
committed
lib: Remove printing of worker node state
The information is already sent over the wire and shown in the SDL GUI (if available). No need to dump it to stdout as well. That reminds me, I should fix logging.c to output to stderr instead.
1 parent 4ec7f69 commit 9d4b1f9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib/protocol/worker.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,12 @@ static cJSON *startRender(int connectionSocket, size_t thread_limit) {
277277
if (pauser == 256 / active_msec) {
278278
cJSON *stats = newAction("stats");
279279
cJSON *array = cJSON_AddArrayToObject(stats, "tiles");
280-
logr(plain, "\33[2K\r");
281-
logr(plain, "( ");
282280
for (size_t t = 0; t < threadCount; ++t) {
283281
struct render_tile *tile = workerThreadStates[t].current;
284282
if (tile) {
285-
float completion = (float)tile->completed_samples / g_worker_renderer->prefs.sampleCount;
286283
cJSON_AddItemToArray(array, encodeTile(tile));
287-
logr(plain, "%i: %.1f%s", tile->index, completion, t < threadCount - 1 ? ", " : " ");
288284
}
289285
}
290-
logr(plain, ")");
291286

292287
mutex_lock(g_worker_socket_mutex);
293288
if (!sendJSON(connectionSocket, stats, NULL)) {

0 commit comments

Comments
 (0)