Godot Version
4.2 Stable
Question
I have a large (size of 10,000) constant Dictionary of Vector2i:int that I am using as a lookup table (the int is an Enum value).
However, having such a large Dictonary loaded in the editor was causing my editor to lag considerably and become unresponsive, so I am trying to serialize/store this constant dictionary into some sort of file and initialize the constant while scripts are being parsed. I found the PackedDataContainer, which claims to be just for effectively storing Arrays and Dictionaries, but there is 0 information I can find on how to retrieve the data once it’s packed.
This Dictionary is programmatically generated from within a tool Scene meant to run while debugging (does NOT use @tool annotation tho. It’s a tool as in it generates this resource for me at debug runtime).