Callionica on Nostr: npub1c353w…89pmh Did you use an LLM to generate the code? This is unusual: ...
npub1c353w465eg94sjctq7kh03f9zajjqqsg9wzmg20gc8tvqwm6u54sm89pmh (npub1c35…9pmh) Did you use an LLM to generate the code?
This is unusual:
cellQueue.push.apply(cellQueue, newCands);
Should be:
cellQueue.push(…newCands);
You could use a loop to eliminate the recursion.
You’re drawing a 50*50 grid and your frame rate isn’t going to get better than 60Hz (16.7ms) so you can use that to calculate how many cells to group in a single draw call to get within your total budget for elapsed time.
N = (50*50*16.7/1000)/B
So if budget B is 5 seconds, N is 9 after rounding
This is unusual:
cellQueue.push.apply(cellQueue, newCands);
Should be:
cellQueue.push(…newCands);
You could use a loop to eliminate the recursion.
You’re drawing a 50*50 grid and your frame rate isn’t going to get better than 60Hz (16.7ms) so you can use that to calculate how many cells to group in a single draw call to get within your total budget for elapsed time.
N = (50*50*16.7/1000)/B
So if budget B is 5 seconds, N is 9 after rounding