Make the initial board rendering faster (but less smooth)

This commit is contained in:
Ophir LOJKINE 2018-12-30 22:53:56 +01:00
parent 72767adc1a
commit 67e5364567

View file

@ -184,7 +184,7 @@ function messageForTool(message) {
// Apply the function to all arguments by batches // Apply the function to all arguments by batches
function batchCall(fn, args) { function batchCall(fn, args) {
var BATCH_SIZE = 512; var BATCH_SIZE = 1024;
if (args.length > 0) { if (args.length > 0) {
var batch = args.slice(0, BATCH_SIZE); var batch = args.slice(0, BATCH_SIZE);
var rest = args.slice(BATCH_SIZE); var rest = args.slice(BATCH_SIZE);