じ☆ve冰风 发表于 2026-7-30 18:03:17

Bug Fix: Event Jitter / Display Rounding Error

Some people mistake this for Screen Tearing or Character lag.


https://www.youtube.com/embed/LgW7rGd2Qs4

Events and the tilemap were rounding extremely low values from "display_x" and "display_y" differently.The tilemap are always rounded up while characters/events are always rounded down.

What do I mean by extremely low values?Because of the formula used to calculate scroll distance (2 ** @scroll_speed / 256.0) the display points can end up being values such as 15.5 pixels.

As mentioned earlier, the tilemap would round this up to 16 while the events would round this down to 15.This would cause events to display 1 pixel away from where they were supposed to.

Github Download


本贴来自国际rpgmaker官方论坛作者:Archeia处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/bug-fix-event-jitter-display-rounding-error.107752/
页: [1]
查看完整版本: Bug Fix: Event Jitter / Display Rounding Error