mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 14:34:20 +00:00
Make the initial board rendering faster (but less smooth)
This commit is contained in:
parent
72767adc1a
commit
67e5364567
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue