jkenlooper / puzzle-massive

Massively Multiplayer Online Jigsaw Puzzles
https://puzzle.massive.xyz/
GNU Affero General Public License v3.0
35 stars 5 forks source link

Optimize puzzle piece rendering to support larger puzzles #84

Closed jkenlooper closed 3 years ago

jkenlooper commented 3 years ago

This is an update that also includes updates of the piecemaker and pixsaw projects. New puzzles generated will then have different resources and potentially a newer puzzle page view since it will be using SVG clip-paths instead of the older sprite backgrounds that are PNG based. Older puzzles will continue using the PNG resources like before and will need to also continue using the older puzzle page user interface.

Using the SVG clip-paths and sprites that are JPG based will allow larger puzzles. Some initial testing with the latest piecemaker can make a puzzle with over 40,000 pieces if the minimum piece size is reduced to 25 pixels. A more sane minimum piece size will probably be 35 pixels and can make a 18,000 piece puzzle from a high resolution photo from Unsplash.

Option to have multiple scaled sizes of the puzzle resources will also be available on the user interface. This should improve the loading time and such when trying to do a larger puzzle and viewing it all at once.

jkenlooper commented 3 years ago

Updated to use the latest version of piecemaker. Other improvements to the user interface and puzzle resources will be a different issue.