MZ Any reason to round sprite picture positions

I have been having some problems with "choppy" or "jittery" movments when moving large pictures veery slowly over the screen. Digging into it, the reason lies solely in the following lines of rmmz_sprites.js:

JavaScript:
Sprite_Picture.prototype.updatePosition = function() {
 const picture = this.picture();
 this.x = Math.round(picture.x());
 this.y = Math.round(picture.y());
};

Removing the Math.round fixes the problem

JavaScript:
Sprite_Picture.prototype.updatePosition = function() {
 const picture = this.picture();
 this.x = picture.x();
 this.y = picture.y();
};

Which makes sense. However, I am wondering if there is a reason that was put there in the first place I'm not seeing and if that would break anything. My initial testing has not revealed any problems, but you never know...

I feel like this sounds like an issue someone else must have run into at some point but searching for it mostly revealed threads that seemed either unrelated to this or without resolution.
I'm guessing it's just to deal more accurately with sprites that don't match round multiples of the default size.
I'm guessing it's just to deal more accurately with sprites that don't match round multiples of the default size.
There is no default size for pictures.
For picture sprites you're probably OK! As far as I'm aware this sort of thing is just to avoid antialiasing/blurring, primarily a concern for keeping pixel art (and text?) sharp/crisp. It may also be relevant for sprite sheets, to avoid bleeding across frame borders.

Drawing a texture at fractional coordinates means each corresponding screen pixel takes its RGBA from 2 or 4 pixels of the texture, rather than just 1. A GPU can do this kind of interpolation very efficiently, no problems there; the trade-off is in fine texture detail.
Well, if that's the only time you are using that function, and it fixes the issue, I wouldn't worry about ot unless and until you or a user notices some other strange behavior.

Looking at my own projects, the only thing I regularly use pictures for is creating a cursor, and I guess it might have an impact on something like that?
For picture sprites you're probably OK! As far as I'm aware this sort of thing is just to avoid antialiasing/blurring, primarily a concern for keeping pixel art (and text?) sharp/crisp. It may also be relevant for sprite sheets, to avoid bleeding across frame borders.

Drawing a texture at fractional coordinates means each corresponding screen pixel takes its RGBA from 2 or 4 pixels of the texture, rather than just 1. A GPU can do this kind of interpolation very efficiently, no problems there; the trade-off is in fine texture detail.
That makes sense. As far as I can see none of the other sprite classes extend Sprite_Picture (You never know...), so I should be save from causing weird side effects into the pixel sprite sheets.
Actually most of the time they use Math.floor instead of Math.round for sprites and tilemaps.
I guess that is why it is jiterring because the extra rounding operation.

Original thread: https://forums.rpgmakerweb.com/threads/any-reason-to-round-sprite-picture-positions.178372/