feat: improve tex packer speed by like 3x#1102
Conversation
|
Amazing work! I don't know why the old algorithm struggled on my sprites. Safari took 50 seconds to pack them. As of now I have 99 sprites and here are the results:
This is an insane upgrade and with this I can even remove the Vite plugin (simpler the better, right). Plugin is still a bit better, and I'll keep it until this is released and tested a bit more. Please note that I'm testing on MacBook with M3 Pro chip and 36 gigs of RAM. |
I am testing on an M3/16G RAM and also have no clue why Safari is so much slower. You would think the first-party OpenGL->Metal translation would be the fastest, but apparently not. |
…also fixes loading screen lol)
fwiw @Stanko this was because I used a brute force implementation that checked every other sprite for collisions which is ChatGPT is saying it's |
speeds up the tex packer by like >=3x i think
on textureoverload playtest, loading ~900 sprites of various sizes:
@Stanko can probably make a better torture test though, would be interested in test using spacedeck x's spritesheets with repacking enabled
test is failing because pupetteer is broken, idk why