Measure render resolution scaling #29
Labels
No labels
area/ai
area/build
area/character
area/combat
area/data
area/docs
area/game
area/net
area/ui
area/world
size
l
size
m
size
s
type
bug
type
design
type
feature
type
refactor
type
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
icub3d/terra-redux-org#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Settles ADR 0004, which is
Proposed rather than Accepted because this measurement has not been taken.
The spike measured the mission view on a Pixel Tablet (Mali-G710, 2560x1600, 60 Hz):
The median is exactly two refresh intervals, so the frame misses its 16.7 ms budget and
waits for the next vsync. The scene is 96 terrain columns, four primitives, one light,
nothing animating, and a static camera — there is no headroom for the game M1 still has
to add.
Only shadows were isolated, and removing them bought 6 fps of the ~29 needed. The rest
has not been attributed between fragment shading at 4.1 Mpixel, the CPU clustering
fallback Bevy reported, and draw-call overhead.
Measure
Render at a fraction of native resolution and plot frame time against pixel count. If
halving resolution roughly doubles the frame rate, the cost is fill-rate and a
resolution cap may be sufficient on its own — which would make dropping PBR unnecessary
and ADR 0004 wrong.
If it does not scale with pixels, the cost is elsewhere and ADR 0004's reasoning holds.
Note that on Android the surface size is system-owned, so
WindowResolution'sscale_factor_overridemay not be the right lever; a render target the camera drawsinto and a blit may be.
Done when
The measurement exists, and ADR 0004 is either accepted or superseded by one that says
what the numbers actually support.
icub3d referenced this issue2026-09-13 17:23:02 +00:00