Default deck card back slow to load #333

Closed
opened 2026-02-20 10:16:32 -05:00 by deekerman · 2 comments
Owner

Originally created by @bjalder26 on GitHub (Jul 29, 2021).

The XML file for the default deck card back looks really complicated with a bunch of transform/translate instructions. It seems to cause a minor lag when cards are pulled from a deck. Below shows about 1/5th of the xml. I suggest we create a less-complicated svg for the default deck, and possibly even replace the current file with it.

image

Originally created by @bjalder26 on GitHub (Jul 29, 2021). The XML file for the default deck card back looks really complicated with a bunch of transform/translate instructions. It seems to cause a minor lag when cards are pulled from a deck. Below shows about 1/5th of the xml. I suggest we create a less-complicated svg for the default deck, and possibly even replace the current file with it. ![image](https://user-images.githubusercontent.com/78324099/127514205-97c286d6-d4c0-4976-b003-9767cc1c2566.png)
Author
Owner

@robartsd commented on GitHub (Jul 29, 2021):

Here's an optimized version using my go to SVG optimization tool:
2B.zip

The zipped size is nearly the same, but the decompressed size is about 37% the original size (those transform commands zip up well).

@robartsd commented on GitHub (Jul 29, 2021): Here's an optimized version using my go to [SVG optimization](https://jakearchibald.github.io/svgomg/) tool: [2B.zip](https://github.com/ArnoldSmith86/virtualtabletop/files/6903850/2B.zip) The zipped size is nearly the same, but the decompressed size is about 37% the original size (those transform commands zip up well).
Author
Owner

@RaphaelAlvez commented on GitHub (Jul 29, 2021):

That van be changed directly into files and make a PR. Good job figuring it out

@RaphaelAlvez commented on GitHub (Jul 29, 2021): That van be changed directly into files and make a PR. Good job figuring it out
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/virtualtabletop#333
No description provided.