dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

`smooth-movement` edge-artifact at high resolution

Open ab9rf opened this issue 1 month ago • 4 comments

Smooth movement is now part of DFHack ShutterKnight (and a seconded report): with smooth movement enabled, a flashing bar renders along the bottom and right edges of the game window at 1440p fullscreen — only when the "Scale interface to fit grid height/width" video option is on. Could be an interpolation overshoot past the rendered grid area.

@notliad any ideas on this? Would like to get this addressed.

ab9rf avatar Oct 20 '26 04:10 ab9rf

This got lost on my gh notifications :( I'll working on it tomorrow.

notliad avatar Nov 10 '26 17:11 notliad

After some digging I think I found it.

When "Scale interface" is on, the game adjust itself on the screen causing the UI not to fit properly at the edges. Without smooth movement, the game just fill these gaps with black pixels (I never noticed them but they are there that part took me a while to figure it out).

So the plugin not knowing that, render these parts. Hence: image

My suggestion: just behave like vanilla and respect the original render screen.

notliad avatar Nov 12 '26 20:11 notliad

@ab9rf if you agree with the solution I can make a PR on Monday fixing it.

notliad avatar Nov 14 '26 15:11 notliad