mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: reduced render workers to 2
This commit is contained in:
1 parent
f8a66bb5e7
commit
9a3867770d
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { Worker } from 'worker_threads';
|
import { Worker } from 'worker_threads';
|
||||||
|
|
||||||
const MAX_WORKERS = 3;
|
const MAX_WORKERS = 2;
|
||||||
|
|
||||||
const workers = [...Array(MAX_WORKERS)].map(() => {
|
const workers = [...Array(MAX_WORKERS)].map(() => {
|
||||||
const worker = new Worker(`${__dirname}/workers/render.cjs`);
|
const worker = new Worker(`${__dirname}/workers/render.cjs`);
|
||||||
|
|||||||
Reference in new issue
Block a user