Repository navigation
Conversation
As it opens and after each zoom, the world map blurs the screen (1280x720, four passes each way) and blends that back over the map for about half a second. With the option off, the two blend draws are skipped while the map is open; the blur passes themselves are shared with other effects and stay. On by default (the game's own look).
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.
What this changes
A new Video > Map zoom blur option, on by default (the game's look). Off, the world map is sharp the whole time: no blur when it opens or on any zoom step, and no blocky frame when the game swaps one zoom level's tiles for the next. With the option on, nothing changes.
With #1137 the map is drawn at the window's resolution, so the blur and the swap are easy to see above 1080p.
What the game does, and what Off skips
6da1591e7d7e6726,dfddd20310007579). Skipped while the map is drawn.c94630386244616e,d1d87dfe0c81ad63, more), so any draw that reads the blurred 1280x720 image with a small square mask on a frame where the map's picture was drawn is skipped. The map's picture (2250x1080) being drawn that frame also covers ways into the map the screen state misses.10e88719ecc264ca) over the coarsest level enlarged many times. Those tiles are drawn opaque instead, so a zoom is a cut.The change
control_settings.c, Video options (game_options.mm) and translations: themap_zoom_blursetting (default 1).exec.c:copy_textureuses, dropped throughvk_defer_imagewhen the picture's image changes, and dropped when the map reopens or the game resets (RT_ON_RESET).How it was tested
Windows 11, RTX 4080 SUPER, game 1.9.0, 3840x2160, 240 fps, with the 2x MapHD tiles. Checked in the game by hand, and with scripted runs from a scratch save: Map button, one zoom step, zoom to the closest level and back out, a screenshot every frame.
Measurements
Sharpness of the map area (mean absolute Laplacian of a 480x270 reduction) per frame:
Between runs the settled views differ slightly in framing, so the numbers compare frames within a run, not across.
Checklist
testand opened againsttest