Repository navigation
Improve and optimize coin rendering and UI - #300
Merged
Merged
Conversation
Port of paritytech/polkadot-ios-community#395: the studio cube is baked from fifteen lamps and a room gradient when the renderer is created (a fragment pass per face and level, as GLES 3.0 has no compute; a smaller CPU bake where float targets are missing), replacing the 42 shipped Radiance faces and their decoder. A 0.10 room lift and four panels at lookup time; the studio turns by the one rotation between gravity readings and chases it at 25/s; the coin surface asks for the display's high rate; titanium, wear toning, the worn-coin matte pull, brushing and the large-grid trims as on iOS. Tests for the lamps, the prefilter and the tilt, and an on-device test of the GPU bake against the CPU one.
subhannaeem
reviewed
Nov 10, 2026
mikyar
reviewed
Nov 10, 2026
mikyar
reviewed
Nov 10, 2026
mikyar
reviewed
Nov 10, 2026
mikyar
reviewed
Nov 10, 2026
mikyar
reviewed
Nov 10, 2026
mikyar
left a comment
Contributor
There was a problem hiding this comment.
Requesting changes. Debug measurement code is mixed into production classes and ships in release builds, which breaks separation of concerns and single responsibility: the renderer, the tilt sensor and the view each carry code that exists only for a debug tool. A reusable view changes settings of the window that hosts it, which breaks encapsulation, since its behaviour leaks to the whole screen and to whatever else sets those settings. The description calls the probe debug-only, while it is compiled into every build.
mikyar
reviewed
Nov 24, 2026
mikyar
reviewed
Nov 24, 2026
mikyar
previously approved these changes
Nov 24, 2026
valentunn
previously approved these changes
Nov 25, 2026
valentunn
approved these changes
Nov 25, 2026
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.
Port of paritytech/polkadot-ios-community#395 and its latency follow-up.
Size of the change against main: