Skip to content

Draw the HUD minimap at the window's resolution - #1142

Open
Zarigis wants to merge 1 commit into
Revivedx:testfrom
Zarigis:minimap-scale
Open

Zarigis wants to merge 1 commit into
Revivedx:testfrom
Zarigis:minimap-scale

Conversation

@Zarigis

@Zarigis Zarigis commented Nov 26, 2026

Copy link
Copy Markdown

What this changes

The HUD minimap is drawn into its own 288x288 picture (its 192x192 pane at 1.5x). It's square, so the 16:9 check in tex_scale_group skips it and it stays at console size; at 4K it was stretched 2x onto the HUD. This puts it in RS_MAP, next to the world map's capture from #1137, so at 4K it's drawn at 576x576. No change at 1080p.

Draw-log evidence

3840x2160 window, HUD on, upscaler off, a frame in the world on the Great Plateau.

  • Before: the minimap's tiles (the 135x135 coarsest level and the 840/1680 medium level) are drawn into rt 288x288/f0x3d, pass 288x288 s 1.0000. That picture is then drawn onto the HUD (host 3840x2160, s 2.0000) through the round 256x256 mask, fs d1d87dfe0c81ad63, scissor 3134 1308 630 852: about 576 screen pixels from a 288-pixel picture.
  • After: the same draws log vp 0 0 576 576 ... pass 576x576 s 2.0000. Only that target changed group; the draw that reads it shares the image by guest address, as the world map's capture does.
Notes and limits
  • The rule matches 288x288 colour targets of format 0x3d. None other was in the logged frames; another target of that exact shape elsewhere would also be scaled, which still samples correctly.
  • Like Draw the world map's terrain at the window's resolution #1137 it follows the window's height, without the HUD-size handling RS_OUT passes get, so a HUD size above 100% still enlarges the minimap somewhat.
  • Not checked: 21:9 and 1440p windows, and 30/60/90/120 fps (the change only sets a render target's size).

How it was tested

Windows 11, RTX 4080 SUPER, game 1.9.0, 3840x2160. Hidden runs from a scratch save on the Great Plateau, before and after, with screenshots at the same frames. Before, the minimap's contour lines and coast were 2x2-pixel steps; after, they're 1-pixel lines. Detail finer than 2 pixels in the minimap's area (the error of a 2x downsample and upsample) went from 0.92 to 1.81. Whole frames otherwise unchanged; no errors in the logs.

Checklist

  • Based on the latest test and opened against test
  • Built and run locally, and checked in the game
  • No game files, keys, firmware, generated game code or save files in the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant