Repository navigation
metal-ca: PanVK's direct indexed draws on by default (swipes +15 %, Settings list +37 % on phone 2) - #407
Merged
Conversation
…CPU_MINMAX/CPU_DIRECT in mtl2-env) Measured on phone 2 (23 Nov, owner's root, same kernel image and console script, fresh boots): home-screen flicks 25.9 -> 29.8 fps, a Settings list 16.1 -> 22.1 fps, vertex/tiler chains 815-829 -> 366-369 us. METAL_CA_PANVK_DIRECT=0 leaves the two lines out. PERFORMANCE.md 9.1.
Collaborator
Author
|
Caveat found after the merge, in later boots the same night: the home-screen swipe has two modes.
The +15 % swipe figure above compares two fast-mode boots (B0 and B1). A third fast-mode boot with the direct draws ( The Settings-list gain does not depend on the mode. Every direct-draw boot scrolled at 19.2-22.6 fps, against 16.1 for B0. Details are in PERFORMANCE.md 9.2 (#408). |
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.
PanVK records an indexed draw as a direct draw (no helper compute job before it) when
STARBITE_PANVK_CPU_MINMAX=1 STARBITE_PANVK_CPU_DIRECT=1are in the root's mtl2-env. Both patches have been inmk-panvk27.sh's series since 18 November, off by default, waiting for a phone run of the swipe frame rate (PERFORMANCE.md 9.1). This turns them on insteps.d/metal-ca/80-metal-ca.sh(METAL_CA_PANVK_DIRECT=0leaves them out). A PanVK built without the two patches ignores the variables.Measured on phone 2, 23 November
The owner's own root (iOS 27.2.1 24B156, StarbiteMetal 7b0a598c unchanged). One fresh boot each, the same kernel image (L6bt's kernel and line, plus
sweetspeedwith 16384,sweetfb_prof=1 sgu_prof=1), and the same console script: 30 s idle on the home screen, 20 page flicks 1.2 s apart, then Settings opened and its list flicked 16 times 1.5 s apart. Frames per second come from the framebuffer's 5 s windows that fall inside each phase, pauses included.Checks in B1:
FAILEDline. backboardd did not exit.Not measured: app open/close. The window stopped at the 78 C cut-off in both boots before reaching it.
The fragment chains did not move. They are what is left of a busy frame (PERFORMANCE.md 9).
Files:
80-metal-ca.sh(the two env lines and the switch),PERFORMANCE.md9.1 (the table), and the header text ofmesa26-panvk-cpu-direct.patch(no code change).