If glide_size is set to a partial-pixel value, the viewport renders considering these partial pixels. This causes ugly flickering on some icons:
#define TILE_WIDTH 16
#define TILE_HEIGHT 16
#define TICK_LAG 0.25
world
fps = 40
icon_size = 16
mob
appearance_flags = LONG_GLIDE
var
move_delay = 2.5
Move()
glide_size = TILE_WIDTH/move_delay*TICK_LAG
. = ..()
If I change the move_delay to 2, I get an integer glide_size:
Flickering disappears.
Rendering needs to round the excess so that it doesn't distort the rendering of graphics and induce anti-aliasing.
At least now I know I'm not insane...er than I already was.