Skip to content

Commit

Permalink
Enable 1440p and 4K
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Aug 17, 2024
1 parent 4434aaa commit b793109
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
18 changes: 8 additions & 10 deletions src/bot/commands/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,14 @@ const qualityOptionChoices: ApplicationCommandOptionChoice[] = [
name: '1080p (FHD)',
value: '1080p',
},
// TODO: Client render might or might not support these resolutions.
// Allowing these would also mean we need more storage...
// {
// name: "1440p (QHD)",
// value: "1440p",
// },
// {
// name: "2160p (UHD)",
// value: "2160p",
// },
{
name: '1440p (QHD)',
value: '1440p',
},
{
name: '2160p (4K UHD)',
value: '2160p',
},
];

const validateQualityOption = (
Expand Down
14 changes: 11 additions & 3 deletions src/client/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { getRelease } from './github.ts';
const isWindows = Deno.build.os === 'windows';

export const supportedQualities: RenderQuality[] = [
RenderQuality.UHD_2160p,
RenderQuality.QHD_1440p,
RenderQuality.FHD_1080p,
RenderQuality.HD_720p,
RenderQuality.SD_480p,
Expand Down Expand Up @@ -427,9 +429,15 @@ const createConfig = async () => {
},
{
name: 'supported_quality',
message: '📺️ What is the maximum quality you want to support? (default: 1080p)',
message: '📺️ What is the maximum quality you want to support?',
type: Select,
options: ['1080p (default)', '720p', '480p'],
options: [
{ name: '1080p (default)', value: RenderQuality.FHD_1080p },
{ name: '480p', value: RenderQuality.SD_480p },
{ name: '720p', value: RenderQuality.HD_720p },
{ name: '1440p', value: RenderQuality.QHD_1440p },
{ name: '4K', value: RenderQuality.UHD_2160p },
],
},
{
name: 'game_mod',
Expand Down Expand Up @@ -527,7 +535,7 @@ const createConfig = async () => {
'base-api': baseApi,
'folder-name': 'autorender',
'protocol': 'autorender-v1',
'max-supported-quality': RenderQuality.FHD_1080p,
'max-supported-quality': setup.supported_quality as RenderQuality,
'check-interval': 1,
'scale-timeout': 9,
'load-timeout': 5,
Expand Down

0 comments on commit b793109

Please sign in to comment.