PraxTube / lost-oppai

MIT License
5 stars 0 forks source link

glitch: One frame delay (events) in dialogue display #18

Open PraxTube opened 1 month ago

PraxTube commented 1 month ago

So there is this weird glitch that happens from time to time with the dialogue. The box jumps a little strangely when resizing (when we have text that is bigger/smaller then the previous one). I assume the underlying issue to be with some Events and Systems that get run in a non-quite deterministic way so we only see this sometimes, though it can't be purely based on System scheduling because then we would see it always in some sessions and never in others, but that is not what is actually the case (we can see it sometimes in some sessions, maybe all).

PraxTube commented 1 month ago

Okay so the visual glitch I see is caused by the naming of the NPCs (i.e. chaning their names from "???" to "Isabelle" or whatever). This is a little delayed, so if you have a big dialogue box, then change the name, and the following dialogue is shorter (so you have a dialogue box resize), then it will look strange.

This is because the name is first updated and the dialogue box is resized afterwards.