Ethan Chan

Results 46 comments of Ethan Chan

If the `IncrementalTextLayout` is empty at first (no default text), the caret will not show up until you type something.

When I set the update rate to 1/60 (60 FPS), the FPS can reach up to 260K on my machine. But if I set the update rate to something like...

Actually I found out that I had maded changes to the Python arcade code, which made drawing incorrect. I reinstalled the Python arcade and Pyglet libraries and found that it...

But there's a problem. On a Windows 11, when you highlight some text, I get an extra caret. So if I highlight text three times, I would have seven carets.

I used `tkinter` for the copy and paste methods. This probably slows down startup times, a little, but it works. I just create a `tkinter` window, then call its `withdraw()`...

If we don't want external dependencies, we could make something that only keeps the copy and pasted text within the application. We could just create a list during initialization, then...

Just draw a label, change its text every frame, and run a profiler check. You will see that most of the time is taken for changing the text.

I'm using modified versions of Arcade Text objects drawn with pyglet rendering. They are `pyglet.text.HTMLLabel`s BTW. Using the latest pyglet and arcade from Github. In the `HTMLLabel` code, I noticed...

Latest pyglet. Probably it lags because I make decode new HTML documents every time.

Could we make a system to only calculate the vertex points of the new text, and keep the old vertex points? This would probably save performance.