Hello.
I'm having trouble in getting my dialogue system to print characters at a constant non-variable speed.
The code, in short, is supposed to print out characters (which are not spaces or part of a tag) at constant intervals.
I've tried a few other ways (including stopwatch, Time.time difference, throttling the state machine, different combinations of types, using floats instead of casting to int, capping the framerate, etc...) but nothing has worked.
When ran in the editor the speed at which the same line is printed varies around +-100ms on average.
In a build, the difference relative to each run is about 200ms on average, but all build runs are around 400ms faster than editor ones.
I would appreciate if anyone could point me in the right direction.
The code: https://pastebin.com/PgRrha6e
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.