forked from BeeStation/BeeStation-Hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust-g IconForge: Lightning fast spritesheet generation (BeeStation#1…
…0404) * Initial testing * Rustg icon generator * this thing.. fast.... * Fix * Finish porting spritesheets and add GAGS support * Remove 'moving' attribute * Refactor the DM component * Update rustg DM and add cleanup call * vendor_icon_preview -> icon_state_preview * Revert tracy change * Re-add GAGS to design spritesheet * Fix crafting spritesheet size * Correct webroot args * Adds caching * Reset rustg * Move cleanup step where it belongs * Add crosscompiled rustg dll * Log cache invalidations * Fix player panel and orbit spritesheets * Fix reading legacy sheets from cache * Enables local caching of legacy assets, adds Regenerate Asset Cache debug verb * Fix universal_icon creation being slow * Protect against cache deletion * Fix hand icons not displaying properly * Remove this very incorrect assumption * Restore rust_g to master * Update defs * Add rustg version checker to smart cache * Move legacy cache to data/spritesheets so it persists on prod * Update config comment to match * Copy all icons so CI works * Try fix CI again * Fix chat and designs not displaying properly when loaded from cache * Fix mistake * Fix double encoding * Inline uni_icon, saving unnecessary proc-call overhead * Create a unit test for the smart cache
- Loading branch information
1 parent
e340544
commit 85215a8
Showing
72 changed files
with
1,239 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#define ASSET_CROSS_ROUND_CACHE_DIRECTORY "data/spritesheets/legacy_cache" | ||
#define ASSET_CROSS_ROUND_SMART_CACHE_DIRECTORY "data/spritesheets/smart_cache" | ||
|
||
/// When sending mutiple assets, how many before we give the client a quaint little sending resources message | ||
#define ASSET_CACHE_TELL_CLIENT_AMOUNT 8 | ||
|
||
/// How many assets can be sent at once during legacy asset transport | ||
#define SLOW_ASSET_SEND_RATE 6 | ||
|
||
/// Constructs a universal icon. This is done in the same manner as the icon() BYOND proc. | ||
/// "color" will not do anything if a transform is provided. Blend it yourself or use color_transform(). | ||
/// Do note that transforms are NOT COPIED, and are internally lists. So take care not to re-use transforms. | ||
/// This is a DEFINE for performance reasons. | ||
/// Parameters (in order): | ||
/// icon_file, icon_state, dir, frame, transform, color | ||
#define uni_icon(I, icon_state, rest...) new /datum/universal_icon(I, icon_state, ##rest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ | |
return ..(str_var) | ||
|
||
/datum/config_entry/flag/cache_assets | ||
|
||
/datum/config_entry/flag/smart_cache_assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.