Repository navigation
Conversation
seedds
added a commit
that referenced
this pull request
Oct 25, 2026
…etried for good (general, from PR #143). A Bluetooth Switch Pro controller that vibrates through iOS Settings' Identify stayed silent in a game, which logged Core Haptics -4810 (server init failed): the adapter made each engine once per route and called startAndReturnError on that same broken engine at every later effect, and its stop/reset handlers were installed only after the start. Now haptics_apple.m makes an engine when the first effect needs it (the phone's too, so after the audio session is active), installs the handlers before starting it, and a failure to make or start the engine, make or start its player or send its parameters releases that engine: a fresh game signal makes a new one after a backoff of 1, 2, 4 or 8 s, effects from before the failure are not replayed, and the old engine's callbacks are stale (generation). A controller whose left and right handle engines cannot be made or started falls back to its default locality until it reconnects; a player or parameter failure (a service reset, say) is retried on the same handle. Idle release (1 s of silence), focus loss and engine resets stop an engine but keep it, so the next effect restarts the same engine, as before. Errors name the target, the stage, the error domain and code and the underlying error, and the log names the controller, its localities and the output channels. From PR #143 (nanda86), with two changes: the PR dropped the engine at every stop, so each rumble after a second of silence made a new engine (a new connection to the haptics service on a controller, a new initWithAudioSession: engine on the phone), and any handle failure moved the route to the default locality for good. t_haptics_apple covers each failure stage, the backoff, the fallback (and no fallback on a player failure), stale callbacks, a restarted engine after idle release, a disconnect and a controller without haptics, with fake controllers and engines. Checked: the host unit tests pass (GAME=0100DCA0064A6000), haptics_apple.m compiles for iOS arm64 with -Wall -Werror. Not checked: a physical controller or the iPhone's own haptics
Owner
|
Thank you for this, and for the clear write-up and the tests. It's in main as 0f99c35, credited to this PR, with two changes:
|
Know-It-All-Brother
pushed a commit
to Know-It-All-Brother/nxnative
that referenced
this pull request
Nov 9, 2026
…etried for good (general, from PR seedds#143). A Bluetooth Switch Pro controller that vibrates through iOS Settings' Identify stayed silent in a game, which logged Core Haptics -4810 (server init failed): the adapter made each engine once per route and called startAndReturnError on that same broken engine at every later effect, and its stop/reset handlers were installed only after the start. Now haptics_apple.m makes an engine when the first effect needs it (the phone's too, so after the audio session is active), installs the handlers before starting it, and a failure to make or start the engine, make or start its player or send its parameters releases that engine: a fresh game signal makes a new one after a backoff of 1, 2, 4 or 8 s, effects from before the failure are not replayed, and the old engine's callbacks are stale (generation). A controller whose left and right handle engines cannot be made or started falls back to its default locality until it reconnects; a player or parameter failure (a service reset, say) is retried on the same handle. Idle release (1 s of silence), focus loss and engine resets stop an engine but keep it, so the next effect restarts the same engine, as before. Errors name the target, the stage, the error domain and code and the underlying error, and the log names the controller, its localities and the output channels. From PR seedds#143 (nanda86), with two changes: the PR dropped the engine at every stop, so each rumble after a second of silence made a new engine (a new connection to the haptics service on a controller, a new initWithAudioSession: engine on the phone), and any handle failure moved the route to the default locality for good. t_haptics_apple covers each failure stage, the backoff, the fallback (and no fallback on a player failure), stale callbacks, a restarted engine after idle release, a disconnect and a controller without haptics, with fake controllers and engines. Checked: the host unit tests pass (GAME=0100DCA0064A6000), haptics_apple.m compiles for iOS arm64 with -Wall -Werror. Not checked: a physical controller or the iPhone's own haptics
ltrdpper
pushed a commit
to ltrdpper/BananaNative
that referenced
this pull request
Nov 11, 2026
…ix, 12 GB memory, foldable inner screen, Pokopia frame cap Memory maps (seedds#127, seedds#132): background pipeline compiles on Turnip are serialized (vk-psoasync / vk-psopt through the heavy-compile hold), contiguous placed segments are joined across pools at submission start, unplace copies through sw_mmap_fixed instead of mremap so the kernel merges anonymous VMAs again, and past 2,000 split anonymous maps the dirty tracker releases its protections once (one re-upload) so guest VMAs merge. Launcher: android:appCategory="game" (seedds#110); the game fills a foldable's near-square inner screen (GameOrientation.fixedLandscape from the maximum window metrics); overlay blocks inset from rounded corners and cutouts (seedds#105, OverlayInset); Prepare texts say whether the code rewrite or a shader translation runs and that shaders are kept; no "Ready, with limits" dialog at start. Frame rate: Ocarina of Time (`0400486024DEC000`) fps_limit 60 (was 30). Pokémon Pokopia (`0400A3A01EE4C000`) fps_limit 60 with the new launcher key fps_limit_present: the host limiter's caps are offered with a note that they pace the presents only (seedds#143). Skipped work: the Vulkan replay counts draws and dispatches skipped for causes of the device (no mesh shading, refused shaders or pipelines, missing features) and warns once per run past DM_VK_SKIP_WARN percent (default 5) in two 300-frame windows in a row; the launcher shows a small notice. Textures: the pool-read line counts images made again for an ID made before (diagnostic, seedds#131). Docs: Fire Emblem Fortune's Weave's note links only existing reference entries; docs_patches classifies av1_decoder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Controller rumble can remain silent after a Core Haptics helper fails to initialize: the adapter retries the same failed engine indefinitely, and startup happens before reset/stop handlers are installed. This was observed with a Bluetooth Switch Pro controller that vibrates through iOS Settings Identify, while the game logs Core Haptics -4810.
Create engines on demand, attach lifecycle handlers before starting, and discard failed connections. Fresh game signals retry with a new engine after a 1–8 second backoff; old effects and callbacks cannot reach the replacement. If separate controller handle engines fail, fall back to the default controller locality. Phone engine creation is deferred until the game's audio session is active. Errors now include the stage, target, domain/code and underlying service error.
Validation:
make -C dm/host/tests GAME=0100DCA0064A6000 -j3 run(normal host audio access).-Wall -Werrorpassed.No game files, keys, provisioning material or device logs are included.