Skip to content

Quality presets and recommended preset #1158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fission/src/Synthesis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TooltipType,
useTooltipManager,
} from "@/ui/TooltipContext"
import { applyInitialGraphicsSettings } from "@/ui/panels/GraphicsSettingsPanel"
import MainHUD from "@/components/MainHUD"
import DownloadAssetsModal from "@/modals/DownloadAssetsModal"
import ExitSynthesisModal from "@/modals/ExitSynthesisModal"
Expand Down Expand Up @@ -101,6 +102,8 @@ const Synthesis: React.FC = () => {
startSingleplayerCallback={() => {
World.initWorld()

applyInitialGraphicsSettings()

Comment on lines +105 to +106
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a huge fan of calling a function from a Panel in Synthesis.tsx. If anything, this function should be in a helper .ts file, not .tsx

if (!PreferencesSystem.getGlobalPreference("ReportAnalytics") && !import.meta.env.DEV) {
setConsentPopupDisable(false)
}
Expand Down
2 changes: 2 additions & 0 deletions fission/src/systems/preferences/PreferenceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type GlobalPreferences = {
MuteAllSound: boolean
SFXVolume: number
ShowCenterOfMassIndicators: boolean
GraphicsOptimizationApplied: boolean
}

export type GlobalPreference = keyof GlobalPreferences
Expand Down Expand Up @@ -64,6 +65,7 @@ export const defaultGlobalPreferences: GlobalPreferences = {
MuteAllSound: false,
SFXVolume: 25,
ShowCenterOfMassIndicators: false,
GraphicsOptimizationApplied: false,
}

export type GraphicsPreferences = {
Expand Down
Loading
Loading