Skip to content

Commit e10277b

Browse files
seeddsohxiaoguang
andcommitted
Movies: 5.1 Vorbis sound decodes right, as stb_vorbis's type-2 residues span every channel of their submap (GitHub PR #60)
stb_vorbis cut a type-2 residue's interleaved vector at n * 2 values even when its submap holds more channels, so the rest of the packet was read as the wrong data: the 5.1 tracks libvorbis encodes came out distorted and gurgling, with pops. The bound is now n * ch, as in the Vorbis spec and libvorbis's res2_inverse, and the temporary-memory estimate for a caller-owned buffer counts every channel of the stream for type-2 residues (with the decode fix alone, a 6-channel stream overran the advertised buffer). Upstream stb still has the bug (nothings/stb #879, #1594). Link's Awakening's opening and title movies were the report; DRAGON QUEST XI S's movies open only 6-channel Vorbis tracks too. Its 23 6-channel cutscene and title tracks, decoded as the host does, now match FFmpeg to within 0.02 PCM16 units, where main's decoder was off by an RMS of 1,700 to 70,000 units. dm/host/tests/t_vorbis builds tiny Vorbis streams in memory (types 0/1/2, mono to 8 channels, two submaps) and checks heap and fixed-buffer decoding through the pull and push APIs, with and without STB_VORBIS_DIVIDES_IN_RESIDUE; it needs no game profile. dmhost rebuilds when stb_vorbis.c changes. On top of the PR: the test rules sit with the others, and the stb_vorbis README and the per-game notes say what the fix repairs. Co-authored-by: ohxiaoguang <[email protected]>
1 parent 6da1882 commit e10277b

6 files changed

Lines changed: 158 additions & 6 deletions

File tree

‎dm/host/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ endif
5050
endif
5151
.PHONY: FORCE
5252
FORCE:
53-
dmhost: $(SRC) $(GFX) dm.h hle.h dm_input.h front.h $(GFX_H) $(GAME_H) $(GAME_DIR)/dmsh_chain.h $(GAME_STAMP) $(VPX_LIB)
53+
dmhost: $(SRC) $(GFX) ../third_party/stb_vorbis/stb_vorbis.c dm.h hle.h dm_input.h front.h $(GFX_H) $(GAME_H) $(GAME_DIR)/dmsh_chain.h $(GAME_STAMP) $(VPX_LIB)
5454
clang $(CFLAGS) -I../gfx/nvn/include -I../third_party/vulkan-headers/include -I$(dir $(GAME_H)) -I$(GAME_DIR) -I$(VPX) -I../third_party/stb_vorbis -fobjc-arc -o $@ $(SRC) $(GFX) $(VPX_LIB) -framework Cocoa -framework QuartzCore -framework Metal -framework GameController -framework AudioToolbox -framework VideoToolbox -framework CoreMedia -framework CoreVideo -framework ImageIO -framework UniformTypeIdentifiers
5555
clean: # the host and everything make generates for it (gen/: the profile headers, the game stamp and the libvpx build; dmhost_* and *.dSYM beside them, as in .gitignore)
5656
rm -rf gen dmhost dmhost_* *.dSYM

‎dm/host/tests/Makefile‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ B = build
44
# tests that use the game profile need GAME=<base game title ID> (there is no default game); GINC only expands when used, so tests without the profile build as before
55
GINC = $(if $(strip $(GAME)),-I../gen/$(GAME) -I../../games/$(GAME),$(error GAME is not set: make GAME=<base game title ID>: $(shell python3 ../../games/game.py list | awk -F'\t' '{printf "%s (%s) ", $$1, $$3}')))
66
GAME_H = ../gen/$(GAME)/game_profile.h
7-
run: $(B)/t_touch $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pctl $(B)/t_time $(B)/t_shared_font
7+
run: $(B)/t_touch $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides
88
$(B)/t_touch
99
$(B)/t_oe 2>/dev/null
1010
$(B)/t_fs 2>/dev/null
@@ -20,6 +20,8 @@ run: $(B)/t_touch $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $
2020
$(B)/t_pctl
2121
$(B)/t_time
2222
$(B)/t_shared_font
23+
$(B)/t_vorbis
24+
$(B)/t_vorbis_divides
2325
$(GAME_H):
2426
$(MAKE) -C .. game_profile GAME=$(GAME)
2527
$(B)/t_touch: t_touch.c ../hle_touch.c ../front.h ../dm.h $(GAME_H) | $(B)
@@ -54,6 +56,11 @@ $(B)/t_condvar: t_condvar.c t_condvar_stub.c ../hle_thread.c ../dm.h $(GAME_H) |
5456
clang -O1 -Wno-unused-function -DDM_TEST_HOOKS -I.. $(GINC) -o $@ t_condvar.c t_condvar_stub.c ../hle_thread.c
5557
$(B)/t_condvar_old: t_condvar.c t_condvar_stub.c ../hle_thread.c ../dm.h $(GAME_H) | $(B)
5658
clang -O1 -Wno-unused-function -DDM_TEST_HOOKS -DDM_TEST_CV_OLD_ORDER -I.. $(GINC) -o $@ t_condvar.c t_condvar_stub.c ../hle_thread.c
59+
# the Vorbis tests build their own packets and need no game profile (they build without GAME)
60+
$(B)/t_vorbis: t_vorbis.c ../../third_party/stb_vorbis/stb_vorbis.c | $(B)
61+
clang -O1 -g -Wno-unused-function -Wno-tautological-compare -o $@ t_vorbis.c
62+
$(B)/t_vorbis_divides: t_vorbis.c ../../third_party/stb_vorbis/stb_vorbis.c | $(B)
63+
clang -O1 -g -DSTB_VORBIS_DIVIDES_IN_RESIDUE -Wno-unused-function -Wno-tautological-compare -o $@ t_vorbis.c
5764
$(B):
5865
mkdir -p $@
5966
.PHONY: run tsan

‎dm/host/tests/t_vorbis.c‎

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
// Synthetic Vorbis only: no game files, encoder, or audio device required.
2+
// Exercise type-2 residues beyond the stereo bound and decode with a caller-owned arena.
3+
#include <assert.h>
4+
#include <math.h>
5+
#include <stdio.h>
6+
#include <stdlib.h>
7+
#include <string.h>
8+
#define STB_VORBIS_NO_STDIO
9+
#define STB_VORBIS_NO_INTEGER_CONVERSION
10+
#include "../../third_party/stb_vorbis/stb_vorbis.c"
11+
12+
typedef struct { unsigned char data[8192]; int bits; } packet;
13+
typedef struct { unsigned char data[32768]; int size, seq; } stream;
14+
static void bits(packet *p, unsigned value, int n) {
15+
assert(p->bits + n <= (int)sizeof(p->data) * 8);
16+
for (int i = 0; i < n; i++, p->bits++)
17+
p->data[p->bits / 8] |= ((value >> i) & 1) << (p->bits % 8);
18+
}
19+
static packet header(int type) {
20+
packet p = {0}; bits(&p, type, 8);
21+
for (int i = 0; i < 6; i++) bits(&p, "vorbis"[i], 8);
22+
return p;
23+
}
24+
static void page(stream *s, packet *p, int flags, unsigned granule) {
25+
int len = (p->bits + 7) / 8, segments = len / 255 + 1;
26+
int start = s->size, size = 27 + segments + len;
27+
assert(start + size <= (int)sizeof(s->data));
28+
unsigned char *d = s->data + start;
29+
memcpy(d, "OggS", 4); d[5] = flags;
30+
for (int i = 0; i < 4; i++) { d[6+i] = granule >> (8*i); d[18+i] = s->seq >> (8*i); }
31+
d[14] = 1; d[26] = segments;
32+
for (int i = 0; i < segments; i++) d[27+i] = i+1 == segments ? len % 255 : 255;
33+
memcpy(d + 27 + segments, p->data, len);
34+
unsigned crc = 0;
35+
for (int i = 0; i < size; i++) crc = crc32_update(crc, d[i]);
36+
for (int i = 0; i < 4; i++) d[22+i] = crc >> (8*i);
37+
s->size += size; s->seq++;
38+
}
39+
static void codebook(packet *p, int lookup) {
40+
bits(p, 0x564342, 24); bits(p, 1, 16); bits(p, 1, 24); // one dimension, one entry
41+
bits(p, 0, 1); bits(p, 0, 1); bits(p, 0, 5); // unordered, dense, one-bit code
42+
bits(p, lookup, 4);
43+
if (lookup) {
44+
bits(p, (788u << 21) | 1, 32); bits(p, 0, 32); // minimum 1.0, delta 0.0
45+
bits(p, 0, 4); bits(p, 0, 1); bits(p, 0, 1); // one-bit multiplicand, no sequence
46+
}
47+
}
48+
static stream fixture(int channels, int type, int split) {
49+
stream s = {0}; packet p = header(1);
50+
bits(&p, 0, 32); bits(&p, channels, 8); bits(&p, 48000, 32);
51+
for (int i = 0; i < 3; i++) bits(&p, 0, 32);
52+
bits(&p, 0x66, 8); bits(&p, 1, 8); // both block sizes 64, framing flag
53+
page(&s, &p, 2, 0);
54+
p = header(3); bits(&p, 0, 32); bits(&p, 0, 32); bits(&p, 1, 8); page(&s, &p, 0, 0);
55+
p = header(5); bits(&p, 1, 8); codebook(&p, 0); codebook(&p, 1);
56+
bits(&p, 0, 6); bits(&p, 0, 16); // one time configuration
57+
bits(&p, 0, 6); bits(&p, 1, 16); bits(&p, 0, 5); // one floor 1, no partitions
58+
bits(&p, 0, 2); bits(&p, 5, 4); // multiplier 1, range 32
59+
bits(&p, split ? 1 : 0, 6);
60+
for (int i = 0; i < 1 + split; i++) {
61+
int ch = split ? (i ? 1 : channels-1) : channels;
62+
bits(&p, type, 16); bits(&p, 0, 24);
63+
bits(&p, 32 * (type == 2 ? ch : 1), 24); // complete interleaved vector
64+
bits(&p, 31, 24); bits(&p, 0, 6); bits(&p, 0, 8); // partition size 32, classbook 0
65+
bits(&p, 1, 3); bits(&p, 0, 1); bits(&p, 1, 8); // pass 0 uses vector codebook 1
66+
}
67+
bits(&p, 0, 6); bits(&p, 0, 16); bits(&p, split, 1);
68+
if (split) bits(&p, 1, 4);
69+
bits(&p, 0, 1); bits(&p, 0, 2); // no coupling, reserved bits
70+
if (split) for (int i = 0; i < channels; i++) bits(&p, i == channels-1, 4);
71+
for (int i = 0; i < 1 + split; i++) { bits(&p, 0, 8); bits(&p, 0, 8); bits(&p, i, 8); }
72+
bits(&p, 0, 6); bits(&p, 0, 1); bits(&p, 0, 16); bits(&p, 0, 16); bits(&p, 0, 8);
73+
bits(&p, 1, 1); page(&s, &p, 0, 0);
74+
for (int frame = 0; frame < 4; frame++) {
75+
p = (packet){0}; bits(&p, 0, 1);
76+
for (int i = 0; i < channels; i++) { bits(&p, 1, 1); bits(&p, 255, 8); bits(&p, 255, 8); }
77+
// Each 32-bin partition consumes one scalar code and 32 vector codes, all zero.
78+
for (int i = 0; i < channels; i++) { bits(&p, 0, 1); bits(&p, 0, 32); }
79+
page(&s, &p, frame == 3 ? 4 : 0, frame * 32);
80+
}
81+
return s;
82+
}
83+
static int decode(stream *s, int push, const stb_vorbis_alloc *arena, float *output) {
84+
int error = 0, used = 0, offset = 0, total = 0;
85+
stb_vorbis *f = push ? stb_vorbis_open_pushdata(s->data, s->size, &used, &error, arena)
86+
: stb_vorbis_open_memory(s->data, s->size, &error, arena);
87+
assert(f && error == 0); offset = used;
88+
for (;;) {
89+
float **pcm = NULL; int frames = 0;
90+
if (push) {
91+
if (offset == s->size) break;
92+
used = stb_vorbis_decode_frame_pushdata(f, s->data + offset, s->size - offset, NULL, &pcm, &frames);
93+
assert(used || frames); offset += used;
94+
} else frames = stb_vorbis_get_frame_float(f, NULL, &pcm);
95+
if (!push && !frames) break;
96+
assert(total + frames <= 128);
97+
for (int i = 0; i < frames; i++) for (int c = 0; c < f->channels; c++) {
98+
float v = pcm[c][i]; assert(isfinite(v)); output[(total+i)*f->channels+c] = v;
99+
}
100+
total += frames;
101+
}
102+
assert(stb_vorbis_get_error(f) == 0); stb_vorbis_close(f); return total;
103+
}
104+
static void check(int channels, int type, int split) {
105+
stream s = fixture(channels, type, split); int error = 0;
106+
stb_vorbis *f = stb_vorbis_open_memory(s.data, s.size, &error, NULL); assert(f);
107+
stb_vorbis_info info = stb_vorbis_get_info(f);
108+
if (!split) {
109+
// Feed zero codes through the actual residue decoder: every coefficient must be one.
110+
unsigned char zeros[512] = {0}, skip[8] = {0}; float values[8][32], *planes[8];
111+
for (int c = 0; c < channels; c++) planes[c] = values[c];
112+
f->stream = zeros; f->stream_end = zeros + sizeof zeros;
113+
f->bytes_in_seg = 255; f->last_seg = TRUE; f->valid_bits = 0; f->acc = 0;
114+
decode_residue(f, planes, channels, 32, 0, skip);
115+
for (int c = 0; c < channels; c++) for (int i = 0; i < 32; i++) {
116+
if (values[c][i] != 1.0f) fprintf(stderr, "type %d, %d channels: coefficient [%d][%d] = %g, expected 1\n", type, channels, c, i, values[c][i]);
117+
assert(values[c][i] == 1.0f);
118+
}
119+
}
120+
stb_vorbis_close(f);
121+
unsigned temp = info.temp_memory_required > info.setup_temp_memory_required ? info.temp_memory_required : info.setup_temp_memory_required;
122+
unsigned bytes = info.setup_memory_required + temp;
123+
// Use exactly the advertised requirement, rather than hiding an underestimate with a large arena.
124+
char *memory = malloc(bytes); assert(memory);
125+
stb_vorbis_alloc arena = { memory, (int)bytes };
126+
float reference[128*8], actual[128*8]; int n = decode(&s, 0, NULL, reference); assert(n == 96);
127+
for (int push = 0; push <= 1; push++) for (int fixed = 0; fixed <= 1; fixed++) {
128+
int got = decode(&s, push, fixed ? &arena : NULL, actual); assert(got == n);
129+
double energy = 0;
130+
for (int i = 0; i < n*channels; i++) { assert(actual[i] == reference[i]); energy += actual[i]*actual[i]; }
131+
assert(energy > 0);
132+
}
133+
free(memory); printf("type %d, %d channels, %d submap(s): heap/arena pull/push passed\n", type, channels, 1+split); fflush(stdout);
134+
}
135+
int main(void) {
136+
crc32_init();
137+
for (int type = 0; type <= 2; type++) { check(1, type, 0); check(2, type, 0); }
138+
check(3, 2, 0); check(6, 2, 0); check(8, 2, 0); check(6, 2, 1);
139+
return 0;
140+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
Source: https://github.com/nothings/stb `stb_vorbis.c` at commit 1ee679c (version 1.22), unmodified. License in LICENSE (MIT or public domain, your choice; the same text ends the source file).
1+
Source: https://github.com/nothings/stb `stb_vorbis.c` at commit 1ee679c (version 1.22). License in LICENSE (MIT or public domain, your choice; the same text ends the source file).
22
Use: the host decodes the Vorbis sound tracks of the games' WebM movies with it (`dm/host/hle_movie.c` includes the file with `STB_VORBIS_NO_STDIO`, `STB_VORBIS_NO_PULLDATA_API` and `STB_VORBIS_NO_INTEGER_CONVERSION`, and feeds each raw packet in as an Ogg page of its own). First needed by Link's Awakening.
3+
4+
Local change (GitHub PR #60; upstream still has the bug, nothings/stb issues #879 and #1594): a type-2 residue interleaves every channel of its submap, so `decode_residue` reads up to n × the submap's channel count values, not n × 2, and `start_decoder`'s temporary-memory estimate for a caller-owned buffer counts every channel of the stream for type-2 residues. Without it the 5.1 tracks libvorbis encodes (Link's Awakening's and DRAGON QUEST XI S's movies) come out distorted (gurgling, with pops, in Link's Awakening). Regression test: `make -C dm/host/tests build/t_vorbis build/t_vorbis_divides`, then run both binaries.

‎dm/third_party/stb_vorbis/stb_vorbis.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,8 @@ static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int
21082108
int rtype = f->residue_types[rn];
21092109
int c = r->classbook;
21102110
int classwords = f->codebooks[c].dimensions;
2111-
unsigned int actual_size = rtype == 2 ? n*2 : n;
2111+
// Type 2 interleaves all channels in this submap, not just a stereo pair.
2112+
unsigned int actual_size = rtype == 2 ? n*ch : n;
21122113
unsigned int limit_r_begin = (r->begin < actual_size ? r->begin : actual_size);
21132114
unsigned int limit_r_end = (r->end < actual_size ? r->end : actual_size);
21142115
int n_read = limit_r_end - limit_r_begin;
@@ -4162,6 +4163,8 @@ static int start_decoder(vorb *f)
41624163
for (i=0; i < f->residue_count; ++i) {
41634164
Residue *r = f->residue_config + i;
41644165
unsigned int actual_size = f->blocksize_1 / 2;
4166+
// A type-2 submap can contain every channel; budget for that upper bound.
4167+
if (f->residue_types[i] == 2) actual_size *= f->channels;
41654168
unsigned int limit_r_begin = r->begin < actual_size ? r->begin : actual_size;
41664169
unsigned int limit_r_end = r->end < actual_size ? r->end : actual_size;
41674170
int n_read = limit_r_end - limit_r_begin;

‎docs/development.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ The game's own work and its frame rate stay as they are; the host avoids work of
227227
**The Legend of Zelda: Link's Awakening (`01006BB00C6F0000`)**
228228
- **Engine:** Grezzo's engine on NintendoWare, SDK 8.2.0 (the oldest so far), NVN 53. Modules main + subsdk0 (GLSLC, NVN's runtime shader compiler) + subsdk1 (movie) + sdk; 9,698 shaders from the bfsha archives, effects and layouts.
229229
- **Window origin:** the only game so far that keeps NVN's default lower-left (OpenGL) window origin; the host flips its viewports and winding and the window image at present ([04](agents/04-graphics.md)). Before that, text the game renders into textures came out upside down.
230-
- **Movies:** VP9 with a 5.1 Vorbis sound track; the host decodes the sound with stb_vorbis.
230+
- **Movies:** VP9 with a 5.1 Vorbis sound track; the host decodes the sound with stb_vorbis, which needed a local fix for type-2 residues with more than two channels ([README](../dm/third_party/stb_vorbis/README.md)). Before that, the opening and title movies sounded distorted and gurgling, with pops.
231231
- **Lighting:** tiled forward lighting whose tile lists a compute shader builds each frame; it needs the dispatch size in NVN's driver segment `c0` ([04](agents/04-graphics.md)). Before the host supplied it, lights piled into the bottom tile row and the doorway step flickered with white tiles.
232232
- **Sound:** SDK 8 numbers the audio renderer's commands differently (the output command is 0x10, not 0x13); the host recognises the output command by its size. Before that, music and sound effects were silent and only the movies had sound ([03](agents/03-bringup.md)).
233233
- **Mac input:** the title wants L+R: `DM_KEYS="f6000:L+R~0.4,f6300:A,f6500:A,f6700:Down,f6800:A"` reaches a new file's name entry (a fresh save directory via `SV=`).
@@ -472,7 +472,7 @@ The game's own work and its frame rate stay as they are; the host avoids work of
472472
- **Status:** brought up on the Mac through the opening movie, the title (name entry, system settings), the prologue movie (skipped with +) and into free play at Cobblestone Tor (the hero, Gemma, the villagers, the HUD and the minimap), at 30 fps with sound and saves; no red line, about 2.1 GB resident (1.1 GB of it Metal allocations), 1.5 GB mapped in the guest. Playable on an iPhone.
473473
- **Engine:** Unreal Engine 4.18 on SDK 7.3.2, update 1.0.4 (v262144), with Square Enix's own sound driver (`SQEX::Sd`, "SEAD") on the audio renderer; `subsdk0` is the movie module, driven by Unreal's Switch movie player (VP9 with two 6-channel Vorbis tracks).
474474
- **Files and shaders:** legacy version 4 paks whose blocks are LZ5-compressed, decoded on the Mac with the game's own `LZ5_decompress_safe` (`uepak.py`, `DM_OODLE_SERVE` after `nninitStartup`, since the decoder uses the game's malloc). The 38,892 shaders are inline in the cooked packages and in `GlobalShaderCache-GLSL_SWITCH.bin`, each a zlib stream of an `LSLG` record (`shader_split.py` `ue_legacy_jobs`). The colour-grading LUT's slice-writing geometry shader is folded into its vertex shader's layer entry points (`prog_fold_gs`); the other 22 geometry shaders do not build ([04](agents/04-graphics.md)).
475-
- **Sound and movies:** SEAD refills its voices without waiting on the renderer event, so catch-up frames wait for queue space. The movie player registers its decoder events before filling them (read at signal time), plays only when every track holds a decoded output (audio decoders keep 32), and after a skip sends an end-of-stream packet for every input it gets (none is handed out after end-of-stream) ([03](agents/03-bringup.md)).
475+
- **Sound and movies:** SEAD refills its voices without waiting on the renderer event, so catch-up frames wait for queue space. The movie player registers its decoder events before filling them (read at signal time), plays only when every track holds a decoded output (audio decoders keep 32), and after a skip sends an end-of-stream packet for every input it gets (none is handed out after end-of-stream) ([03](agents/03-bringup.md)). Its 6-channel Vorbis tracks decode right only since stb_vorbis's fix for type-2 residues with more than two channels ([README](../dm/third_party/stb_vorbis/README.md)); before that, the movie sound came out distorted, with peaks far past full scale.
476476
- **Memory:** Unreal's one address region is capped at 4064 MB (`game_args`, MB up to 4095); two cuts on the `sdk` build (node area 62 MB, 32 MB alignment for regions of 1 GB and more) put it 64 MB into Engage's 5 GB block. Its cube-map array (510 faces) needed NVN's layer-face count ([04](agents/04-graphics.md)).
477477
- **Frame rate:** 60 fps (30 on the Switch). The profile's `fps_target` writes 60 into this build's `t.MaxFPS` and 1 into `nvn.SyncInterval` (`hle_fpslock.c`, both threads' copies; the game's config sets 30 and 2); `DM_FPS_TARGET=30` (`Documents/env.txt` on the iPhone) keeps the game's 30 and saves power. On the Mac (M4 Pro) the field holds 60 fps (frame time p95 17 ms, GPU 6.6 ms p50 / 9.7 ms p95) at normal speed, since Unreal steps the game by the time that really passed, with sound intact. The game's dynamic resolution budgets are for 30 fps (`r.DynamicResolution.*TimeBudget` 28–35 ms in `SwitchEngine.ini`), so it does not lower the resolution to reach 60: where a frame needs more than 16.7 ms, frames are dropped instead.
478478
- **Mac input:** with the save of an earlier run (the name entered), `DM_KEYS="20:A*150/3,250:Plus*4/10,480:B,483:LUp~4"` skips the prologue movie at about 270 s and walks on Cobblestone Tor at about 480 s.

0 commit comments

Comments
 (0)