Commit Graph

2462 Commits

Author SHA1 Message Date
SandPoot
1d6008397a Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-11-19 23:22:26 -03:00
Metis
f6af059a06 job titles 2024-11-02 03:16:16 -04:00
LemonInTheDark
b478367fd9 Saves on average 10 seconds from roundstart times (#71730)
## About The Pull Request

When runlevels change mid work, subsystems running behind have their
next_fire updated.
It's offset by a sum of random numbers, so things don't bunch up,
especially KEEPTIME SSs

The trouble is we have so many subsystems that get added at roundstart
that this offset gets LARGE, like 10 seconds on average.

So instead of randomly offsetting, why not "fill" a set of time slots?
Only 1 keeptime subsystem a tick, and 4 others. Then we just fill up
those buckets and get to it (also don't offset things that are already
processing)

I've talked to mso a bit about this. What he reccomended was sampling a
random time withing a 2 second window.
I'm not totally sure why, kinda waiting for him to tell me off, if he
does I'll fix things up.

This pattern takes the max possible delay from 16 (76 * 5 / 20)) seconds
to 0.7 (56 / 4 / 20)
It obviously scales with subsystem count, but I like this scaling a bit
better

I've applied the same pattern to the offsetting we do at the start of
Loop(), for ticker subsystems. I am less confident in this, it does take
last fire times from at worst 3.75 seconds (15 * 5 / 20) to a static
0.75 (15 / 20)
As stated I'm less sure of this, hoping to get mso'd so I can clean
things up

## Why It's Good For The Game

Makes roundstart snappier

## Changelog
🆑
code: Roundstart "starting" should be much snappier now
/🆑

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2024-10-21 00:30:59 -04:00
SandPoot
e2cc28d21d Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-10-20 18:05:53 -03:00
SkyratBot
80e7c0db0a [MIRROR] Sends a toast notification when initializations complete. [MDB IGNORE] (#18623)
* Sends a toast notification when initializations complete. (#72465)

Initialization is significantly slowed down by the presence of clients,
though when testing features, you need to join the server. I've been
told that some devs (particularly Mothblocks) are alt-tabbed out of
Dream Daemon while doing dev work, meaning that they are liable to miss
initializations completing, causing an effective slowdown in the dev
cycle. Mothblocks said it would be nice if there was a way to produce a
desktop notification when initialization completes.

I originally intended to add a function to rust_g that would produce a
Windows toast notification with a button allowing you to immediately
launch Dream Seeker. However, I couldn't find a reliable way to detect
if the OS version was Windows 7 or earlier, so running this function on
such an OS would cause a rust panic (which I was told is only a problem
because MSO probably still uses Windows 7).

Fortunately, PowerShell scripts can access the necessary .NET APIs to
produce toast notifications on Windows 10, while also failing more
gracefully than crashing the host process. So I recreated the
functionality I intended in PowerShell.

Toast notifications will only be sent on Windows, if the
TOAST_NOTIFICATION_ON_INIT config flag is enabled, AND there are no
clients on the server.

**Note for downstreams:** If you want the toast notification to have
your downstream's icon, copy it, scale the copy down to 16x16, and
either rename it "tg_16.png" or change that path in the call to
`world.shelleo` to the name of the new file.

Video Demo:

https://user-images.githubusercontent.com/12720844/210492033-963923d7-a1de-4326-9c9f-4f0c0b71d1a5.mp4

This isn't really a line item in the Dev Cycles Initiative, but even if
Mothblocks was exaggerating the benefits, it would still be a
significant speedup in the dev cycles.

No player-facing changes.

* Sends a toast notification when initializations complete.

Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net>
2024-10-15 00:25:48 -04:00
SandPoot
a1905591f7 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-08-24 23:49:10 -03:00
SandPoot
c07e94be66 push 2024-08-24 21:28:55 -03:00
SandPoot
e31747dc08 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-05-20 18:55:33 -03:00
deathride58
2e5e548369 Merge pull request #16089 from SandPoot/borg-buttons
Borg movement intent buttons
2024-05-20 17:40:38 -04:00
SandPoot
7832dbdba4 push 2024-05-20 18:25:24 -03:00
SandPoot
6083aeb1e3 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-05-17 21:49:16 -03:00
SandPoot
0a074ecb63 Purpose found
Co-authored-by: deathride58 <deathride58@users.noreply.github.com>
2024-05-17 21:38:45 -03:00
SandPoot
8d4b317800 poosh 2024-05-17 15:12:55 -03:00
SandPoot
2e2528ee56 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-04-13 00:36:29 -03:00
deathride58
dd8c641520 Merge pull request #15486 from SandPoot/kills-cache
Solves issues with overlays by updating the whole subsystem
2024-04-12 23:31:54 -04:00
SandPoot
e40960a3a2 sadly necessary 2024-04-12 22:18:43 -03:00
SandPoot
002a4c31c1 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-04-12 22:06:15 -03:00
SandPoot
91045350e5 overlay stuff 2024-04-12 22:01:03 -03:00
SandPoot
dfe90dfb61 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 into pr/SandPoot/15486 2024-04-12 20:48:41 -03:00
SandPoot
ea41329544 some random math, if it's too low, or too high, change later 2024-04-10 23:01:39 -03:00
SandPoot
ca8ce67cd6 mail 2024-04-10 20:54:04 -03:00
SandPoot
c2df4281b9 Merge branch 'master' of https://github.com/Sandstorm-Station/Sandstorm-Station-13; branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-04-05 23:31:50 -03:00
SandPoot
68fa21d602 content 2024-04-05 17:57:54 -03:00
SandPoot
80666ec1dd Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-03-30 16:47:39 -03:00
SandPoot
b76127c2d7 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-03-15 19:21:39 -03:00
SandPoot
676cb864b1 missed proc refs 2024-03-12 22:17:30 -03:00
Katherine Kiefer
7feb673279 sorted the wrong thing 2024-03-12 15:38:49 +11:00
Katherine Kiefer
461f90a0ea hmmmph 2024-03-12 15:29:22 +11:00
Katherine Kiefer
4a062ab083 shitty debug print 2024-03-12 15:20:19 +11:00
Katherine Kiefer
7fa6bb022e shit 2024-03-12 15:07:19 +11:00
Katherine Kiefer
fd29f9c902 initial 2024-03-09 21:16:02 +11:00
SandPoot
a65f323734 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 into proc-define-shit 2024-03-08 19:10:22 -03:00
SandPoot
fcd036dab5 final stuff, i think? 2024-03-07 20:31:53 -03:00
SandPoot
17362e5881 push em 2024-02-25 13:41:28 -03:00
SandPoot
0b990039e3 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2024-01-16 18:00:55 -03:00
SandPoot
c7a2565255 stop this nonsense 2024-01-05 00:28:56 -03:00
SandPoot
7eaef36e11 d k daunkey kaung 2024-01-03 22:42:03 -03:00
SandPoot
4e9ff44ee7 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2023-12-29 15:49:14 -03:00
deathride58
ce1d757159 Merge pull request #16016 from SandPoot/throwing-update
[TESTMERGE] Updates firemanning, throwing stuff
2023-12-28 22:44:59 -05:00
SandPoot
be37603291 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2023-12-23 13:28:41 -03:00
SandPoot
b9a422ee2d throw at mobs laying down 2023-12-18 14:07:25 -03:00
SandPoot
27bdd4b732 aiModule > ai_module 2023-12-17 23:20:43 -03:00
SandPoot
7b62dbe7bb ai + mech 2023-12-17 23:15:59 -03:00
SandPoot
d7942e1365 button 2023-12-10 00:50:10 -03:00
SandPoot
a558377206 more stuff i can't guarantee works by itself yet 2023-11-29 23:37:15 -03:00
SandPoot
40f1d7401d procs 2023-11-29 22:40:13 -03:00
SandPoot
fd124b03e4 Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 2023-11-03 21:27:30 -03:00
SandPoot
55e0e5de06 real quick 2023-10-28 17:54:31 -03:00
SandPoot
0b6d743e22 go 2023-10-28 17:51:02 -03:00
SandPoot
3aa3aead3d re-do the whole goddamn thing. 2023-10-20 17:48:13 -03:00