Modding:Modding Efficiently: Difference between revisions

From Vintage Story Wiki
Line 29: Line 29:
* If you are working with shaders, you can reload them with <code>.reload shaders</code>
* If you are working with shaders, you can reload them with <code>.reload shaders</code>
* Do not hold static references unless its primitive data. Static references are not garbage collected when the player leaves a server / game world. Example: Holding a static reference of a <code>Block</code> will keep that block in memory, which in turn keeps the API Instance in memory, which in turn keeps the entire game world in memory.
* Do not hold static references unless its primitive data. Static references are not garbage collected when the player leaves a server / game world. Example: Holding a static reference of a <code>Block</code> will keep that block in memory, which in turn keeps the API Instance in memory, which in turn keeps the entire game world in memory.
* The game client and server have a number of [https://wiki.vintagestory.at/index.php?title=Client_startup_parameters startup arguments] to make your live easier
* The game client and server have a number of [[Client startup parameters|startup arguments]] to make your live easier


=== Efficient Search Methods ===
=== Efficient Search Methods ===
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits