Closed lucymhdavies closed 5 years ago
It appears to be a Draw issue.
I’ve forced all Windows to return nil immediately in their Update function https://play.jsgo.io/07cf591cd77ea0c44a678274eb3ab48a2780bbe4
I’m still getting TPS and FPS drops when showing the stats window. I’m guessing this is the fault of the bar.
Yep. Definitely the bar.Draw. I’ve removed the bars, and the FPS is fine.
Makes sense. There’s a lot of heavy lifting in there, with it creating a new ebiten.Image for every bar every frame.
Most noticeable on my iPad. I kinda just assumed this was my iPad being slow, and was a problem with the window being semi-transparent, but I do not get the same issue on the items window.
For comparison: