What is Nostr?
Callionica /
npub1uz3…cl40
2024-03-18 19:47:43
in reply to nevent1q…hvlq

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
Author Public Key
npub1uz3296wrkeyxuj8hyfxjmfd0g6hyxt22yztpxrad6vx0e6ct0ykqsdcl40