-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rust-g, use spritesheet asset for design icons (#5315)
* Update rust-g and fix spritesheet icon cache problem * Convert design_icons to spritesheet, from 1618 images to 8 * Update rust-g in the CI as well * Push ci suite to ubuntu 22.04 so that rust-g stops complaining * Update libssl too... oh jeez. * Fix PyYaml * Include rust-g in repo for CI * Stop CRASHing whenever the asset cache encounters a bad entry, it guarantees everything else will break * A whole bunch of bullshit to make IconForge work Ports BeeStation/BeeStation-Hornet#10404 * whoops this should be in the example config
- Loading branch information
1 parent
3393203
commit 966d34b
Showing
45 changed files
with
1,575 additions
and
600 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,33 @@ | ||
//Percentage of tick to leave for master controller to run | ||
#define MAPTICK_MC_MIN_RESERVE 70 | ||
//internal_tick_usage is updated every tick | ||
#if DM_VERSION > 513 | ||
#define MAPTICK_LAST_INTERNAL_TICK_USAGE world.map_cpu | ||
#else | ||
#define MAPTICK_LAST_INTERNAL_TICK_USAGE 50 | ||
#endif | ||
|
||
// Tick limit while running normally | ||
#define TICK_BYOND_RESERVE 2 | ||
#define TICK_LIMIT_RUNNING (max(100 - TICK_BYOND_RESERVE - MAPTICK_LAST_INTERNAL_TICK_USAGE, MAPTICK_MC_MIN_RESERVE)) | ||
// Tick limit used to resume things in stoplag | ||
#define TICK_LIMIT_TO_RUN 70 | ||
// Tick limit for MC while running | ||
#define TICK_LIMIT_MC 70 | ||
// Tick limit while initializing | ||
#define TICK_LIMIT_MC_INIT_DEFAULT (100 - TICK_BYOND_RESERVE) | ||
|
||
//for general usage | ||
#define TICK_USAGE world.tick_usage | ||
//to be used where the result isn't checked | ||
#define TICK_USAGE_REAL world.tick_usage | ||
|
||
// Returns true if tick_usage is above the limit | ||
#define TICK_CHECK ( TICK_USAGE > Master.current_ticklimit ) | ||
// runs stoplag if tick_usage is above the limit | ||
#define CHECK_TICK ( TICK_CHECK ? stoplag() : 0 ) | ||
|
||
// Returns true if tick usage is above 95, for high priority usage | ||
#define TICK_CHECK_HIGH_PRIORITY ( TICK_USAGE > 95 ) | ||
// runs stoplag if tick_usage is above 95, for high priority usage | ||
#define CHECK_TICK_HIGH_PRIORITY ( TICK_CHECK_HIGH_PRIORITY? stoplag() : 0 ) |
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
Oops, something went wrong.