Skip to content

Commit

Permalink
add: Titlescreen optimization for dreamseeker debug mode (ss220-space…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Nov 9, 2024
1 parent b31440c commit 052bd39
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 26 deletions.
3 changes: 3 additions & 0 deletions code/controllers/configuration/entries/testing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

///Enables bombarda crafting on server.
/datum/config_entry/flag/enable_bombarda_craft

///Enables loading titlescreen only after master has been loaded.
/datum/config_entry/flag/enable_titlescreen_lateload
7 changes: 6 additions & 1 deletion code/controllers/subsystem/non-firing/titlescreen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ SUBSYSTEM_DEF(title)
import_html()
fill_title_images_pool()
current_title_screen = new(title_html = base_html, screen_image_file = pick_title_image())
show_title_screen_to_all_new_players()
if(!CONFIG_GET(flag/enable_titlescreen_lateload))
show_title_screen_to_all_new_players()
return SS_INIT_SUCCESS

/datum/controller/subsystem/title/OnMasterLoad()
if(CONFIG_GET(flag/enable_titlescreen_lateload))
show_title_screen_to_all_new_players()

/datum/controller/subsystem/title/Recover()
current_title_screen = SStitle.current_title_screen
title_images_pool = SStitle.title_images_pool
Expand Down
57 changes: 32 additions & 25 deletions config/example/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,18 +473,6 @@ PLAYER_REROUTE_CAP 0
## Server to reroute to
#TUTORIAL_SERVER_URL byond://example.org:1111

## Disable the loading of away missions
#DISABLE_AWAY_MISSIONS

## Disable the loading of space ruins
#DISABLE_SPACE_RUINS

## Minimum number of space ruins levels to generate
EXTRA_SPACE_RUIN_LEVELS_MIN 4

## Maximum number of space ruins levels to generate
EXTRA_SPACE_RUIN_LEVELS_MAX 8

## Uncomment to disable the OOC/LOOC channel by default.
#DISABLE_OOC

Expand Down Expand Up @@ -648,7 +636,6 @@ TOPIC_FILTERING_WHITELIST 127.0.0.1
# Number of players required for automatic gamemode change to extended. Doesn't work if set to zero or commented
#AUTO_EXTENDED_PLAYERS_NUM 10


## CPU Affinity for FFmpeg. Check out taskset man page.
## Example valid values: "0-3" or "1,4-7"
#FFMPEG_CPUAFFINITY 0-3
Expand All @@ -666,21 +653,9 @@ MAP_ROTATE none
## notriples - current map can't be selected as next if played twice in a row
MAP_VOTE_MODE all

## Default server map
DEFAULT_MAP /datum/map/cyberiad

## Override server map by specified, uncomment to apply
# OVERRIDE_MAP /datum/map/delta

## Enable animations on item pickup and drop down
# ITEM_ANIMATIONS_ENABLED

## Disable the loading of "Taipan"
# DISABLE_TAIPAN

## Disable the loading of Lavaland
# DISABLE_LAVALAND

## If the number of players is more or same than this, then we apply the highpop jobs config.
JOBS_HIGH_POP_MODE_AMOUNT 80

Expand Down Expand Up @@ -733,3 +708,35 @@ CACHE_ASSETS 0

## Enable the replay demo recording subsystem
#DEMOS_ENABLED

### INITIALIZATION SETTINGS ###
## This section contains settings directly affecting initializing progress. Uncomment these to make your world load faster.

## Enables loading titlescreen only after master has been loaded. Recommended to be used on local server for faster loading.
#ENABLE_TITLESCREEN_LATELOAD

## Disable the loading of "Taipan"
#DISABLE_TAIPAN

## Disable the loading of Lavaland
#DISABLE_LAVALAND

## Disable the loading of away missions
#DISABLE_AWAY_MISSIONS

## Disable the loading of space ruins
#DISABLE_SPACE_RUINS

## Default server map
DEFAULT_MAP /datum/map/cyberiad

## Override server map by specified, uncomment to apply
# OVERRIDE_MAP /datum/map/delta

## Minimum number of space ruins levels to generate
EXTRA_SPACE_RUIN_LEVELS_MIN 4

## Maximum number of space ruins levels to generate
EXTRA_SPACE_RUIN_LEVELS_MAX 8

### INITIALIZATION SETTINGS END ###

0 comments on commit 052bd39

Please sign in to comment.