Page 1 of 1

Unnecessary font cache rebuild when copying save code after program start

Posted: Sun Jun 14, 2020 4:00 pm
by Stargate38
Since a few versions back, I noticed that GSim triggers a font cache rebuild when copying the save code for the first time (after starting the program). This is not necessary, and on my system, it makes GSim freeze for several seconds while it's loading every single font installed on my system. The problem still exists in 3.0.2, and I think a persistent font cache (one that's only updated when fonts are added/removed from the Windows Fonts folder, not after every program restart) should be implemented. Here's the steps to reproduce the issue on Windows 10 1909 64-bit with GSim 3.0.2:

1. Install a bunch of fonts (unless you already have a lot of them)
2. Start GSim.
3. Click Build (continue to Step 4) or Load from Code (skip to Step 5)
4. Click the Save/Load button on the top left sidebar.
5. Select any simulation (doesn't matter which)
6. Select all and press Ctrl+C.

The program should freeze for several seconds, during which nothing is copied until the font cache is rebuilt.

Re: Unnecessary font cache rebuild when copying save code after program start

Posted: Fri Jun 19, 2020 10:25 pm
by testtubegames
Thanks for sharing that - I'll take a look!